home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-01 | 51.9 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Sat Apr 1 16:53:07 1995, modified Sat Apr 1 16:53:07 1995, creator 'MMCC', type ASCII, 50733 bytes "SetEntriesQuickly.c" , at 0xc6ad 2092 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |..SetEnt|riesQuic|
|00000010| 6b 6c 79 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |kly.c...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 c6 2d 00 | 00 08 2c ab a3 7b c3 ab |......-.|..,..{..|
|00000060| a3 7b c3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b6 19 00 00 |........|........|
|00000080| 2f 2a 0d 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |/*.SetEn|triesQui|
|00000090| 63 6b 6c 79 2e 63 0d 0d | 53 65 74 45 6e 74 72 69 |ckly.c..|SetEntri|
|000000a0| 65 73 51 75 69 63 6b 6c | 79 20 6c 6f 61 64 73 20 |esQuickl|y loads |
|000000b0| 79 6f 75 72 20 76 69 64 | 65 6f 20 63 61 72 64 d5 |your vid|eo card.|
|000000c0| 73 20 63 6c 75 74 20 61 | 73 20 71 75 69 63 6b 6c |s clut a|s quickl|
|000000d0| 79 20 61 73 20 70 6f 73 | 73 69 62 6c 65 2e 0d 0d |y as pos|sible...|
|000000e0| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|000000f0| 79 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 62 79 |y was wr|itten by|
|00000100| 20 6d 61 6e 79 20 70 65 | 6f 70 6c 65 2c 20 61 6e | many pe|ople, an|
|00000110| 64 20 74 68 65 20 d2 66 | 69 6e 61 6c d3 20 72 65 |d the .f|inal. re|
|00000120| 73 75 6c 74 20 68 61 73 | 20 6e 6f 74 0d 62 65 65 |sult has| not.bee|
|00000130| 6e 20 74 65 73 74 65 64 | 20 6f 6e 20 61 6c 6c 20 |n tested| on all |
|00000140| 74 68 65 20 63 6f 6d 70 | 75 74 65 72 73 20 61 6e |the comp|uters an|
|00000150| 64 20 76 69 64 65 6f 20 | 64 65 76 69 63 65 73 20 |d video |devices |
|00000160| 69 74 d5 73 20 6d 65 61 | 6e 74 20 74 6f 20 73 75 |it.s mea|nt to su|
|00000170| 70 70 6f 72 74 2e 20 54 | 68 65 0d 62 65 73 74 20 |pport. T|he.best |
|00000180| 74 65 73 74 20 69 73 20 | 73 69 6d 70 6c 79 20 74 |test is |simply t|
|00000190| 6f 20 72 75 6e 20 54 69 | 6d 65 56 69 64 65 6f 2c |o run Ti|meVideo,|
|000001a0| 20 77 68 69 63 68 20 67 | 69 76 65 73 20 69 74 20 | which g|ives it |
|000001b0| 61 20 74 68 6f 72 6f 75 | 67 68 20 77 6f 72 6b 6f |a thorou|gh worko|
|000001c0| 75 74 20 6f 6e 20 61 6c | 6c 0d 6f 66 20 79 6f 75 |ut on al|l.of you|
|000001d0| 72 20 63 6f 6d 70 75 74 | 65 72 d5 73 20 76 69 64 |r comput|er.s vid|
|000001e0| 65 6f 20 64 65 76 69 63 | 65 73 2e 20 50 6c 65 61 |eo devic|es. Plea|
|000001f0| 73 65 20 73 65 6e 64 20 | 74 68 65 20 72 65 70 6f |se send |the repo|
|00000200| 72 74 20 d2 54 69 6d 65 | 56 69 64 65 6f 20 72 65 |rt .Time|Video re|
|00000210| 73 75 6c 74 73 d3 20 74 | 6f 0d 64 65 6e 69 73 40 |sults. t|o.denis@|
|00000220| 78 70 2e 70 73 79 63 68 | 2e 6e 79 75 2e 65 64 75 |xp.psych|.nyu.edu|
|00000230| 2c 20 61 6e 64 20 49 d5 | 6c 6c 20 61 64 64 20 79 |, and I.|ll add y|
|00000240| 6f 75 72 20 74 65 73 74 | 20 72 65 73 75 6c 74 73 |our test| results|
|00000250| 20 74 6f 20 d2 56 69 64 | 65 6f 20 62 75 67 73 d3 | to .Vid|eo bugs.|
|00000260| 20 61 6e 64 20 74 68 65 | 0d 66 6f 6c 6c 6f 77 69 | and the|.followi|
|00000270| 6e 67 20 6c 69 73 74 2e | 0d 0d 56 49 44 45 4f 20 |ng list.|..VIDEO |
|00000280| 44 45 56 49 43 45 53 20 | 43 45 52 54 49 46 49 45 |DEVICES |CERTIFIE|
|00000290| 44 20 62 79 20 54 69 6d | 65 56 69 64 65 6f 20 61 |D by Tim|eVideo a|
|000002a0| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 77 69 74 |s compat|ible wit|
|000002b0| 68 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |h SetEnt|riesQuic|
|000002c0| 6b 6c 79 28 29 3a 0d 31 | 2e 20 4f 6b 3a 0d d2 4d |kly():.1|. Ok:..M|
|000002d0| 61 63 69 6e 74 6f 73 68 | 20 44 69 73 70 6c 61 79 |acintosh| Display|
|000002e0| 20 43 61 72 64 20 38 a5 | 32 34 20 47 43 d3 20 28 | Card 8.|24 GC. (|
|000002f0| 2e 44 69 73 70 6c 61 79 | 5f 56 69 64 65 6f 5f 41 |.Display|_Video_A|
|00000300| 70 70 6c 65 5f 4d 44 43 | 47 43 29 0d 51 75 61 64 |pple_MDC|GC).Quad|
|00000310| 72 61 20 39 30 30 20 d2 | 4d 61 63 69 6e 74 6f 73 |ra 900 .|Macintos|
|00000320| 68 20 43 20 42 75 69 6c | 74 2d 49 6e 20 56 69 64 |h C Buil|t-In Vid|
|00000330| 65 6f d3 20 28 6f 6e 6c | 79 20 74 65 73 74 65 64 |eo. (onl|y tested|
|00000340| 20 69 6e 20 31 2c 32 2c | 34 2c 38 2d 62 69 74 20 | in 1,2,|4,8-bit |
|00000350| 6d 6f 64 65 73 29 0d 51 | 75 61 64 72 61 20 39 35 |modes).Q|uadra 95|
|00000360| 30 20 d2 4d 61 63 69 6e | 74 6f 73 68 20 47 20 42 |0 .Macin|tosh G B|
|00000370| 75 69 6c 74 2d 49 6e 20 | 56 69 64 65 6f d3 20 28 |uilt-In |Video. (|
|00000380| 6f 6e 6c 79 20 74 65 73 | 74 65 64 20 69 6e 20 31 |only tes|ted in 1|
|00000390| 2c 32 2c 34 2c 38 2c 31 | 36 2d 62 69 74 20 6d 6f |,2,4,8,1|6-bit mo|
|000003a0| 64 65 73 29 0d 0d 32 2e | 20 4f 6b 20 77 68 65 6e |des)..2.| Ok when|
|000003b0| 20 6c 6f 61 64 69 6e 67 | 20 77 68 6f 6c 65 20 63 | loading| whole c|
|000003c0| 6c 75 74 20 61 74 20 6f | 6e 63 65 2c 20 62 75 74 |lut at o|nce, but|
|000003d0| 20 66 61 69 6c 20 72 65 | 61 64 2d 62 61 63 6b 20 | fail re|ad-back |
|000003e0| 74 65 73 74 20 77 68 65 | 6e 20 6c 6f 61 64 69 6e |test whe|n loadin|
|000003f0| 67 20 6f 6e 65 20 0d 65 | 6e 74 72 79 20 61 74 20 |g one .e|ntry at |
|00000400| 61 20 74 69 6d 65 20 28 | 61 74 20 6c 65 61 73 74 |a time (|at least|
|00000410| 20 6f 6e 20 74 68 65 20 | 51 75 61 64 72 61 20 38 | on the |Quadra 8|
|00000420| 34 30 61 76 29 2e 20 42 | 75 67 20 72 65 70 6f 72 |40av). B|ug repor|
|00000430| 74 65 64 20 62 79 20 4b | 65 6e 20 41 6c 65 78 61 |ted by K|en Alexa|
|00000440| 6e 64 65 72 20 0d 3c 55 | 31 32 39 34 30 40 55 49 |nder .<U|12940@UI|
|00000450| 43 56 4d 2e 42 49 54 4e | 45 54 3e 20 61 6e 64 20 |CVM.BITN|ET> and |
|00000460| 57 65 69 20 58 69 65 2e | 20 54 68 69 73 20 70 72 |Wei Xie.| This pr|
|00000470| 6f 62 6c 65 6d 20 64 6f | 65 73 20 6e 6f 74 20 6f |oblem do|es not o|
|00000480| 63 63 75 72 20 6f 6e 20 | 6d 6f 73 74 20 4d 61 63 |ccur on |most Mac|
|00000490| 73 2e 0d 41 70 70 6c 65 | 20 38 a5 32 34 20 22 4d |s..Apple| 8.24 "M|
|000004a0| 61 63 69 6e 74 6f 73 68 | 20 44 69 73 70 6c 61 79 |acintosh| Display|
|000004b0| 20 43 61 72 64 22 20 28 | 2e 44 69 73 70 6c 61 79 | Card" (|.Display|
|000004c0| 5f 56 69 64 65 6f 5f 41 | 70 70 6c 65 5f 4d 44 43 |_Video_A|pple_MDC|
|000004d0| 20 76 65 72 73 69 6f 6e | 20 32 37 32 29 0d 0d 33 | version| 272)..3|
|000004e0| 2e 20 4f 6b 2c 20 65 78 | 63 65 70 74 20 66 6f 72 |. Ok, ex|cept for|
|000004f0| 20 76 69 73 69 62 6c 65 | 20 68 61 73 68 20 28 64 | visible| hash (d|
|00000500| 79 6e 61 6d 69 63 20 62 | 6c 61 63 6b 20 73 70 65 |ynamic b|lack spe|
|00000510| 63 6b 73 29 20 64 75 72 | 69 6e 67 20 63 6c 75 74 |cks) dur|ing clut|
|00000520| 20 6c 6f 61 64 69 6e 67 | 3a 0d 41 70 70 6c 65 20 | loading|:.Apple |
|00000530| d2 4d 61 63 20 49 49 20 | 48 69 67 68 2d 52 65 73 |.Mac II |High-Res|
|00000540| 6f 6c 75 74 69 6f 6e 20 | 56 69 64 65 6f 20 43 61 |olution |Video Ca|
|00000550| 72 64 d3 20 28 2e 44 69 | 73 70 6c 61 79 5f 56 69 |rd. (.Di|splay_Vi|
|00000560| 64 65 6f 5f 41 70 70 6c | 65 5f 48 52 56 43 29 0d |deo_Appl|e_HRVC).|
|00000570| 41 70 70 6c 65 20 d2 54 | 6f 62 79 20 66 72 61 6d |Apple .T|oby fram|
|00000580| 65 20 62 75 66 66 65 72 | 20 63 61 72 64 d3 20 28 |e buffer| card. (|
|00000590| 2e 44 69 73 70 6c 61 79 | 5f 56 69 64 65 6f 5f 41 |.Display|_Video_A|
|000005a0| 70 70 6c 65 5f 54 46 42 | 20 76 65 72 73 69 6f 6e |pple_TFB| version|
|000005b0| 20 35 29 0d 4d 61 63 20 | 49 49 63 69 20 d2 4d 61 | 5).Mac |IIci .Ma|
|000005c0| 63 69 6e 74 6f 73 68 20 | 49 49 20 42 75 69 6c 74 |cintosh |II Built|
|000005d0| 2d 49 6e 20 56 69 64 65 | 6f d3 20 28 2e 44 69 73 |-In Vide|o. (.Dis|
|000005e0| 70 6c 61 79 5f 56 69 64 | 65 6f 5f 41 70 70 6c 65 |play_Vid|eo_Apple|
|000005f0| 5f 52 42 56 31 29 0d 0d | 34 2e 20 44 6f 6e 27 74 |_RBV1)..|4. Don't|
|00000600| 20 77 6f 72 6b 20 28 68 | 6f 70 65 66 75 6c 6c 79 | work (h|opefully|
|00000610| 20 77 69 6c 6c 20 62 65 | 20 66 69 78 65 64 20 73 | will be| fixed s|
|00000620| 6f 6f 6e 29 3a 0d 52 61 | 73 74 65 72 4f 70 73 20 |oon):.Ra|sterOps |
|00000630| d2 50 72 6f 43 6f 6c 6f | 72 20 33 32 d3 20 28 2e |.ProColo|r 32. (.|
|00000640| 52 61 73 74 65 72 4f 70 | 73 20 31 2e 30 20 33 32 |RasterOp|s 1.0 32|
|00000650| 58 4c 20 56 69 64 65 6f | 20 44 72 69 76 65 72 20 |XL Video| Driver |
|00000660| 76 65 72 73 69 6f 6e 20 | 39 33 32 37 29 0d 0d 43 |version |9327)..C|
|00000670| 4f 4e 54 52 49 42 55 54 | 4f 52 53 20 54 4f 20 54 |ONTRIBUT|ORS TO T|
|00000680| 48 49 53 20 4c 49 53 54 | 0d 4b 65 6e 20 41 6c 65 |HIS LIST|.Ken Ale|
|00000690| 78 61 6e 64 65 72 20 3c | 55 31 32 39 34 30 40 55 |xander <|U12940@U|
|000006a0| 49 43 56 4d 2e 42 49 54 | 4e 45 54 3e 20 28 62 75 |ICVM.BIT|NET> (bu|
|000006b0| 67 20 69 6e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |g in Set|EntriesQ|
|000006c0| 75 69 63 6b 6c 79 29 0d | 4b 79 6c 65 20 43 61 76 |uickly).|Kyle Cav|
|000006d0| 65 2c 20 63 61 76 65 6b | 72 40 63 74 72 76 61 78 |e, cavek|r@ctrvax|
|000006e0| 2e 76 61 6e 64 65 72 62 | 69 6c 74 2e 65 64 75 20 |.vanderb|ilt.edu |
|000006f0| 28 51 75 61 64 72 61 20 | 37 30 30 29 0d 57 65 69 |(Quadra |700).Wei|
|00000700| 20 58 69 65 20 28 62 75 | 67 20 69 6e 20 53 65 74 | Xie (bu|g in Set|
|00000710| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 20 66 |EntriesQ|uickly f|
|00000720| 6f 72 20 41 70 70 6c 65 | 20 38 a5 32 34 20 69 6e |or Apple| 8.24 in|
|00000730| 20 51 75 61 64 72 61 20 | 38 34 30 41 56 29 0d 0d | Quadra |840AV)..|
|00000740| 53 6f 6d 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 76 |Some Mac|intosh v|
|00000750| 69 64 65 6f 20 64 72 69 | 76 65 72 73 20 61 72 65 |ideo dri|vers are|
|00000760| 20 70 6f 6f 72 6c 79 20 | 77 72 69 74 74 65 6e 3b | poorly |written;|
|00000770| 20 74 68 65 79 20 74 61 | 6b 65 20 74 6f 6f 20 6c | they ta|ke too l|
|00000780| 6f 6e 67 20 28 6d 6f 72 | 65 20 74 68 61 6e 20 61 |ong (mor|e than a|
|00000790| 0d 66 72 61 6d 65 20 74 | 69 6d 65 29 20 74 6f 20 |.frame t|ime) to |
|000007a0| 6c 6f 61 64 20 74 68 65 | 20 63 6c 75 74 2e 20 54 |load the| clut. T|
|000007b0| 68 69 73 20 69 73 20 6d | 61 6b 65 73 20 69 74 20 |his is m|akes it |
|000007c0| 69 6d 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 64 6f |impossib|le to do|
|000007d0| 20 63 6c 75 74 20 61 6e | 69 6d 61 74 69 6f 6e 0d | clut an|imation.|
|000007e0| 66 6f 72 20 74 65 6d 70 | 6f 72 61 6c 20 6d 6f 64 |for temp|oral mod|
|000007f0| 75 6c 61 74 69 6f 6e 20 | 65 74 63 2e 2c 20 66 6f |ulation |etc., fo|
|00000800| 72 20 77 68 69 63 68 20 | 6f 6e 65 20 6e 65 65 64 |r which |one need|
|00000810| 73 20 74 6f 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |s to be |able to |
|00000820| 72 65 6c 6f 61 64 20 74 | 68 65 20 63 6c 75 74 0d |reload t|he clut.|
|00000830| 6f 6e 20 65 61 63 68 20 | 66 72 61 6d 65 2e 20 41 |on each |frame. A|
|00000840| 74 20 6f 6e 65 20 74 69 | 6d 65 2c 20 6d 61 6e 79 |t one ti|me, many|
|00000850| 20 6f 66 20 75 73 20 74 | 68 6f 75 67 68 74 20 74 | of us t|hought t|
|00000860| 68 61 74 20 74 68 65 20 | 6c 69 6d 69 74 61 74 69 |hat the |limitati|
|00000870| 6f 6e 20 77 61 73 20 69 | 6e 0d 68 61 72 64 77 61 |on was i|n.hardwa|
|00000880| 72 65 2c 20 69 6e 20 74 | 68 65 20 52 41 4d 44 41 |re, in t|he RAMDA|
|00000890| 43 2c 20 62 75 74 20 77 | 65 20 77 65 72 65 20 77 |C, but w|e were w|
|000008a0| 72 6f 6e 67 2e 20 52 61 | 79 6e 61 6c 64 20 43 6f |rong. Ra|ynald Co|
|000008b0| 6d 70 74 6f 69 73 20 64 | 69 73 61 73 73 65 6d 62 |mptois d|isassemb|
|000008c0| 6c 65 64 0d 73 65 76 65 | 72 61 6c 20 76 69 64 65 |led.seve|ral vide|
|000008d0| 6f 20 64 72 69 76 65 72 | 73 20 61 6e 64 20 77 72 |o driver|s and wr|
|000008e0| 6f 74 65 20 68 69 73 20 | 6f 77 6e 20 70 72 6f 67 |ote his |own prog|
|000008f0| 72 61 6d 73 20 74 6f 20 | 6c 6f 61 64 20 74 68 65 |rams to |load the|
|00000900| 20 63 6c 75 74 20 71 75 | 69 63 6b 6c 79 2c 20 61 | clut qu|ickly, a|
|00000910| 6e 64 0d 68 69 73 20 70 | 72 6f 67 72 61 6d 73 20 |nd.his p|rograms |
|00000920| 6d 61 6e 61 67 65 20 74 | 6f 20 64 6f 20 69 74 20 |manage t|o do it |
|00000930| 77 69 74 68 69 6e 20 61 | 20 66 72 61 6d 65 2e 20 |within a| frame. |
|00000940| 52 61 79 6e 61 6c 64 20 | 77 61 73 20 6b 69 6e 64 |Raynald |was kind|
|00000950| 20 65 6e 6f 75 67 68 20 | 74 6f 20 73 68 61 72 65 | enough |to share|
|00000960| 0d 68 69 73 20 63 6f 64 | 65 20 77 69 74 68 20 6d |.his cod|e with m|
|00000970| 65 2e 20 49 20 70 61 73 | 73 65 64 20 69 74 20 6f |e. I pas|sed it o|
|00000980| 6e 20 74 6f 20 50 65 74 | 65 72 20 4c 65 6e 6e 69 |n to Pet|er Lenni|
|00000990| 65 20 61 6e 64 20 42 69 | 6c 6c 20 48 61 61 6b 65 |e and Bi|ll Haake|
|000009a0| 2c 20 77 68 6f 20 70 6f | 6c 69 73 68 65 64 0d 69 |, who po|lished.i|
|000009b0| 74 2c 20 6d 61 6b 69 6e | 67 20 69 74 20 63 6f 6d |t, makin|g it com|
|000009c0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 74 68 65 |patible |with the|
|000009d0| 20 36 38 30 34 30 20 70 | 72 6f 63 65 73 73 6f 72 | 68040 p|rocessor|
|000009e0| 2c 20 61 6e 64 20 61 64 | 64 65 64 20 73 75 70 70 |, and ad|ded supp|
|000009f0| 6f 72 74 20 66 6f 72 20 | 6d 6f 72 65 0d 63 61 72 |ort for |more.car|
|00000a00| 64 73 2e 20 49 20 70 6f | 6c 69 73 68 65 64 20 74 |ds. I po|lished t|
|00000a10| 68 65 69 72 20 77 6f 72 | 6b 2c 20 6d 61 64 65 20 |heir wor|k, made |
|00000a20| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 20 73 65 6c |the rout|ines sel|
|00000a30| 66 20 63 6f 6e 74 61 69 | 6e 65 64 2c 20 61 64 64 |f contai|ned, add|
|00000a40| 69 6e 67 20 61 0d d2 64 | 65 76 69 63 65 d3 20 61 |ing a..d|evice. a|
|00000a50| 72 67 75 6d 65 6e 74 20 | 74 6f 20 61 6c 6c 6f 77 |rgument |to allow|
|00000a60| 20 75 73 65 20 69 6e 20 | 4d 61 63 73 20 74 68 61 | use in |Macs tha|
|00000a70| 74 20 68 61 76 65 20 6d | 6f 72 65 20 74 68 61 6e |t have m|ore than|
|00000a80| 20 6f 6e 65 20 76 69 64 | 65 6f 20 64 65 76 69 63 | one vid|eo devic|
|00000a90| 65 2c 20 61 6e 64 0d 71 | 75 69 63 6b 6c 79 20 66 |e, and.q|uickly f|
|00000aa0| 69 67 75 72 69 6e 67 20 | 6f 75 74 20 61 6c 6c 20 |iguring |out all |
|00000ab0| 74 68 65 20 6b 65 79 20 | 70 61 72 61 6d 65 74 65 |the key |paramete|
|00000ac0| 72 73 20 28 6d 6f 64 65 | 2c 20 70 69 78 65 6c 53 |rs (mode|, pixelS|
|00000ad0| 69 7a 65 2c 20 44 41 43 | 20 73 69 7a 65 2c 20 61 |ize, DAC| size, a|
|00000ae0| 6e 64 20 63 6c 75 74 0d | 73 69 7a 65 29 2e 20 54 |nd clut.|size). T|
|00000af0| 68 65 72 65 20 61 72 65 | 20 6e 6f 77 20 74 77 6f |here are| now two|
|00000b00| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 20 66 72 6f | alterna|tive fro|
|00000b10| 6e 74 20 65 6e 64 73 3a | 20 53 65 74 45 6e 74 72 |nt ends:| SetEntr|
|00000b20| 69 65 73 51 75 69 63 6b | 6c 79 28 29 20 66 6f 72 |iesQuick|ly() for|
|00000b30| 20 6e 65 77 0d 75 73 65 | 72 73 2c 20 61 6e 64 20 | new.use|rs, and |
|00000b40| 6d 61 63 6c 74 73 65 74 | 28 29 20 66 6f 72 20 62 |macltset|() for b|
|00000b50| 61 63 6b 77 61 72 64 20 | 63 6f 6d 70 61 74 69 62 |ackward |compatib|
|00000b60| 69 6c 69 74 79 20 77 69 | 74 68 20 70 72 6f 67 72 |ility wi|th progr|
|00000b70| 61 6d 73 20 74 68 61 74 | 20 75 73 65 64 0d 52 61 |ams that| used.Ra|
|00000b80| 79 6e 61 6c 64 d5 73 20 | 6f 72 69 67 69 6e 61 6c |ynald.s |original|
|00000b90| 20 72 6f 75 74 69 6e 65 | 73 2e 20 54 68 69 73 20 | routine|s. This |
|00000ba0| 6d 6f 64 75 6c 61 72 69 | 74 79 20 68 61 73 20 69 |modulari|ty has i|
|00000bb0| 6e 63 72 65 61 73 65 64 | 20 72 75 6e 20 74 69 6d |ncreased| run tim|
|00000bc0| 65 20 6f 6e 6c 79 0d 73 | 6c 69 67 68 74 6c 79 2c |e only.s|lightly,|
|00000bd0| 20 61 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 61 | a fract|ion of a|
|00000be0| 20 6d 69 6c 6c 69 73 65 | 63 6f 6e 64 2e 0d 0d 4e | millise|cond...N|
|00000bf0| 65 77 20 64 72 69 76 65 | 72 73 20 61 72 65 20 68 |ew drive|rs are h|
|00000c00| 61 72 64 20 74 6f 20 77 | 72 69 74 65 2c 20 73 69 |ard to w|rite, si|
|00000c10| 6e 63 65 20 74 68 65 79 | 20 6d 75 73 74 20 64 69 |nce they| must di|
|00000c20| 72 65 63 74 6c 79 20 61 | 64 64 72 65 73 73 20 74 |rectly a|ddress t|
|00000c30| 68 65 20 72 65 67 69 73 | 74 65 72 73 20 6f 66 0d |he regis|ters of.|
|00000c40| 74 68 65 20 76 69 64 65 | 6f 20 63 61 72 64 2c 20 |the vide|o card, |
|00000c50| 77 68 69 63 68 20 61 72 | 65 20 75 6e 69 71 75 65 |which ar|e unique|
|00000c60| 20 74 6f 20 65 61 63 68 | 20 76 69 64 65 6f 20 63 | to each| video c|
|00000c70| 61 72 64 20 61 6e 64 20 | 75 6e 64 6f 63 75 6d 65 |ard and |undocume|
|00000c80| 6e 74 65 64 2e 20 53 6f | 20 74 68 65 0d 61 75 74 |nted. So| the.aut|
|00000c90| 68 6f 72 20 6f 66 20 61 | 20 64 72 69 76 65 72 20 |hor of a| driver |
|00000ca0| 6d 75 73 74 20 64 69 73 | 61 73 73 65 6d 62 6c 65 |must dis|assemble|
|00000cb0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 76 69 | the ori|ginal vi|
|00000cc0| 64 65 6f 20 64 72 69 76 | 65 72 20 61 6e 64 20 66 |deo driv|er and f|
|00000cd0| 69 67 75 72 65 20 74 68 | 69 6e 67 73 0d 6f 75 74 |igure th|ings.out|
|00000ce0| 20 6f 6e 20 68 69 73 20 | 6f 72 20 68 65 72 20 6f | on his |or her o|
|00000cf0| 77 6e 2e 20 41 20 6c 6f | 74 20 6f 66 20 77 6f 72 |wn. A lo|t of wor|
|00000d00| 6b 2e 0d 0d 53 65 74 45 | 6e 74 72 69 65 73 51 75 |k...SetE|ntriesQu|
|00000d10| 69 63 6b 6c 79 20 69 73 | 20 75 6e 6c 69 6b 65 20 |ickly is| unlike |
|00000d20| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 76 69 64 |the stan|dard vid|
|00000d30| 65 6f 20 64 72 69 76 65 | 72 73 20 69 6e 20 74 68 |eo drive|rs in th|
|00000d40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 77 61 79 73 |e follow|ing ways|
|00000d50| 3a 0d 31 2e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |:.1. Set|EntriesQ|
|00000d60| 75 69 63 6b 6c 79 20 61 | 6c 77 61 79 73 20 74 61 |uickly a|lways ta|
|00000d70| 6b 65 73 20 6c 65 73 73 | 20 74 68 61 6e 20 32 20 |kes less| than 2 |
|00000d80| 6d 73 20 74 6f 20 6c 6f | 61 64 20 74 68 65 20 77 |ms to lo|ad the w|
|00000d90| 68 6f 6c 65 20 63 6c 75 | 74 2e 20 0d 53 6f 6d 65 |hole clu|t. .Some|
|00000da0| 20 76 69 64 65 6f 20 64 | 72 69 76 65 72 73 2c 20 | video d|rivers, |
|00000db0| 65 2e 67 2e 20 66 6f 72 | 20 41 70 70 6c 65 d5 73 |e.g. for| Apple.s|
|00000dc0| 20 38 a5 32 34 20 63 61 | 72 64 2c 20 74 61 6b 65 | 8.24 ca|rd, take|
|00000dd0| 20 73 65 76 65 72 61 6c | 20 66 72 61 6d 65 73 20 | several| frames |
|00000de0| 28 3e 33 30 20 6d 73 29 | 20 74 6f 20 0d 66 69 6e |(>30 ms)| to .fin|
|00000df0| 69 73 68 20 6c 6f 61 64 | 69 6e 67 20 74 68 65 20 |ish load|ing the |
|00000e00| 63 6c 75 74 2e 0d 32 41 | 2e 20 53 65 74 45 6e 74 |clut..2A|. SetEnt|
|00000e10| 72 69 65 73 51 75 69 63 | 6b 6c 79 20 64 6f 65 73 |riesQuic|kly does|
|00000e20| 20 6e 6f 74 20 77 61 69 | 74 20 66 6f 72 20 56 42 | not wai|t for VB|
|00000e30| 4c 2c 20 73 6f 20 61 20 | 76 69 73 69 62 6c 65 20 |L, so a |visible |
|00000e40| 67 6c 69 74 63 68 20 6d | 61 79 20 61 70 70 65 61 |glitch m|ay appea|
|00000e50| 72 20 6f 6e 0d 74 68 65 | 20 63 75 72 72 65 6e 74 |r on.the| current|
|00000e60| 20 66 72 61 6d 65 2c 20 | 61 74 20 6c 65 61 73 74 | frame, |at least|
|00000e70| 20 6f 6e 20 73 6f 6d 65 | 20 6f 6c 64 65 72 20 76 | on some| older v|
|00000e80| 69 64 65 6f 20 63 61 72 | 64 73 20 28 65 2e 67 2e |ideo car|ds (e.g.|
|00000e90| 20 48 69 2d 52 65 73 2c | 20 54 6f 62 79 2c 20 61 | Hi-Res,| Toby, a|
|00000ea0| 6e 64 0d 4d 61 63 20 49 | 49 63 69 29 2e 20 28 59 |nd.Mac I|Ici). (Y|
|00000eb0| 6f 75 20 63 61 6e 20 70 | 72 65 76 65 6e 74 20 74 |ou can p|revent t|
|00000ec0| 68 69 73 20 67 6c 69 74 | 63 68 20 62 79 20 63 61 |his glit|ch by ca|
|00000ed0| 6c 6c 69 6e 67 20 53 65 | 74 45 6e 74 72 69 65 73 |lling Se|tEntries|
|00000ee0| 51 75 69 63 6b 6c 79 20 | 6f 6e 6c 79 20 61 74 0d |Quickly |only at.|
|00000ef0| 62 6c 61 6e 6b 69 6e 67 | 20 74 69 6d 65 2e 20 55 |blanking| time. U|
|00000f00| 73 65 20 61 20 56 42 4c | 20 74 61 73 6b 20 6f 72 |se a VBL| task or|
|00000f10| 20 57 61 69 74 46 6f 72 | 42 6c 61 6e 6b 69 6e 67 | WaitFor|Blanking|
|00000f20| 28 29 2e 29 20 4e 65 77 | 65 72 20 63 61 72 64 73 |().) New|er cards|
|00000f30| 20 61 6e 64 20 63 6f 6d | 70 75 74 65 72 73 0d 73 | and com|puters.s|
|00000f40| 65 65 6d 20 74 6f 20 68 | 61 76 65 20 64 75 61 6c |eem to h|ave dual|
|00000f50| 20 70 6f 72 74 65 64 20 | 76 69 64 65 6f 20 63 6c | ported |video cl|
|00000f60| 75 74 20 6d 65 6d 6f 72 | 79 20 73 6f 20 79 6f 75 |ut memor|y so you|
|00000f70| 20 63 61 6e 20 77 72 69 | 74 65 20 61 74 20 61 6e | can wri|te at an|
|00000f80| 79 20 70 6f 69 6e 74 20 | 69 6e 20 74 68 65 0d 66 |y point |in the.f|
|00000f90| 72 61 6d 65 20 63 79 63 | 6c 65 20 77 69 74 68 6f |rame cyc|le witho|
|00000fa0| 75 74 20 6e 6f 74 69 63 | 65 61 62 6c 65 20 67 6c |ut notic|eable gl|
|00000fb0| 69 74 63 68 2c 20 74 68 | 6f 75 67 68 20 6f 66 20 |itch, th|ough of |
|00000fc0| 63 6f 75 72 73 65 20 79 | 6f 75 20 6d 61 79 20 77 |course y|ou may w|
|00000fd0| 61 6e 74 20 74 6f 20 73 | 79 6e 63 68 0d 74 68 65 |ant to s|ynch.the|
|00000fe0| 20 75 70 64 61 74 65 20 | 66 6f 72 20 6f 74 68 65 | update |for othe|
|00000ff0| 72 20 72 65 61 73 6f 6e | 73 2e 0d 32 42 2e 20 41 |r reason|s..2B. A|
|00001000| 20 66 6c 61 67 20 61 72 | 67 75 6d 65 6e 74 20 d2 | flag ar|gument .|
|00001010| 77 61 69 74 46 6f 72 4e | 65 78 74 42 6c 61 6e 6b |waitForN|extBlank|
|00001020| 69 6e 67 d3 20 69 73 20 | 70 72 6f 76 69 64 65 64 |ing. is |provided|
|00001030| 2c 20 62 75 74 20 61 74 | 20 70 72 65 73 65 6e 74 |, but at| present|
|00001040| 20 74 68 69 73 0d 6f 70 | 74 69 6f 6e 20 69 73 20 | this.op|tion is |
|00001050| 6f 6e 6c 79 20 73 75 70 | 70 6f 72 74 65 64 20 66 |only sup|ported f|
|00001060| 6f 72 20 74 68 65 20 54 | 6f 62 79 20 76 69 64 65 |or the T|oby vide|
|00001070| 6f 20 63 61 72 64 2e 0d | 33 2e 20 53 65 74 45 6e |o card..|3. SetEn|
|00001080| 74 72 69 65 73 51 75 69 | 63 6b 6c 79 20 69 67 6e |triesQui|ckly ign|
|00001090| 6f 72 65 73 20 74 68 65 | 20 67 61 6d 6d 61 20 74 |ores the| gamma t|
|000010a0| 61 62 6c 65 2c 20 79 69 | 65 6c 64 69 6e 67 20 74 |able, yi|elding t|
|000010b0| 68 65 20 73 61 6d 65 20 | 72 65 73 75 6c 74 20 61 |he same |result a|
|000010c0| 73 20 75 73 69 6e 67 0d | 74 68 65 20 73 74 61 6e |s using.|the stan|
|000010d0| 64 61 72 64 20 76 69 64 | 65 6f 20 64 72 69 76 65 |dard vid|eo drive|
|000010e0| 72 20 77 69 74 68 20 61 | 6e 20 75 6e 63 6f 72 72 |r with a|n uncorr|
|000010f0| 65 63 74 65 64 20 67 61 | 6d 6d 61 20 74 61 62 6c |ected ga|mma tabl|
|00001100| 65 2e 20 45 2e 67 2e 20 | 61 66 74 65 72 20 63 61 |e. E.g. |after ca|
|00001110| 6c 6c 69 6e 67 0d 47 44 | 55 6e 63 6f 72 72 65 63 |lling.GD|Uncorrec|
|00001120| 74 65 64 47 61 6d 6d 61 | 28 64 65 76 69 63 65 29 |tedGamma|(device)|
|00001130| 2e 0d 34 2e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |..4. Set|EntriesQ|
|00001140| 75 69 63 6b 6c 79 28 29 | 20 64 6f 65 73 20 6e 6f |uickly()| does no|
|00001150| 74 68 69 6e 67 20 61 6e | 64 20 72 65 74 75 72 6e |thing an|d return|
|00001160| 73 20 61 6e 20 65 72 72 | 6f 72 20 69 66 20 74 68 |s an err|or if th|
|00001170| 65 20 61 72 67 75 6d 65 | 6e 74 73 0d 73 70 65 63 |e argume|nts.spec|
|00001180| 69 66 79 20 6c 6f 61 64 | 69 6e 67 20 6f 66 20 61 |ify load|ing of a|
|00001190| 6e 20 6f 75 74 2d 6f 66 | 2d 72 61 6e 67 65 20 69 |n out-of|-range i|
|000011a0| 6e 64 65 78 2e 20 0d 35 | 2e 20 53 65 74 45 6e 74 |ndex. .5|. SetEnt|
|000011b0| 72 69 65 73 51 75 69 63 | 6b 6c 79 28 29 20 64 6f |riesQuic|kly() do|
|000011c0| 65 73 20 6e 6f 74 68 69 | 6e 67 20 61 6e 64 20 72 |es nothi|ng and r|
|000011d0| 65 74 75 72 6e 73 20 61 | 6e 20 65 72 72 6f 72 20 |eturns a|n error |
|000011e0| 69 66 20 74 68 65 20 d2 | 63 6f 75 6e 74 d3 0d 73 |if the .|count..s|
|000011f0| 70 65 63 69 66 69 65 73 | 20 7a 65 72 6f 20 65 6e |pecifies| zero en|
|00001200| 74 72 69 65 73 2e 20 54 | 68 69 73 20 69 73 20 63 |tries. T|his is c|
|00001210| 6f 6e 74 72 61 72 79 20 | 74 6f 20 74 68 65 20 28 |ontrary |to the (|
|00001220| 62 69 7a 61 72 72 65 29 | 20 41 70 70 6c 65 20 63 |bizarre)| Apple c|
|00001230| 6f 6e 76 65 6e 74 69 6f | 6e 20 74 68 61 74 0d 61 |onventio|n that.a|
|00001240| 20 73 65 74 45 6e 74 72 | 69 65 73 20 63 6f 6e 74 | setEntr|ies cont|
|00001250| 72 6f 6c 20 63 61 6c 6c | 20 77 69 74 68 20 61 20 |rol call| with a |
|00001260| 63 6f 75 6e 74 20 63 6f | 72 72 65 73 70 6f 6e 64 |count co|rrespond|
|00001270| 69 6e 67 20 74 6f 20 7a | 65 72 6f 20 65 6e 74 72 |ing to z|ero entr|
|00001280| 69 65 73 20 77 69 6c 6c | 20 72 65 73 75 6c 74 0d |ies will| result.|
|00001290| 69 6e 20 6c 6f 61 64 69 | 6e 67 20 6f 66 20 65 6e |in loadi|ng of en|
|000012a0| 74 72 69 65 73 20 73 70 | 65 63 69 66 69 65 64 20 |tries sp|ecified |
|000012b0| 62 79 20 74 68 65 20 d2 | 76 61 6c 75 65 d3 20 66 |by the .|value. f|
|000012c0| 69 65 6c 64 20 6f 66 20 | 74 68 65 20 43 6f 6c 6f |ield of |the Colo|
|000012d0| 72 53 70 65 63 2e 0d 36 | 2e 20 53 65 74 45 6e 74 |rSpec..6|. SetEnt|
|000012e0| 72 69 65 73 51 75 69 63 | 6b 6c 79 20 64 6f 65 73 |riesQuic|kly does|
|000012f0| 20 6e 6f 74 20 68 61 76 | 65 20 69 6d 6d 65 64 69 | not hav|e immedi|
|00001300| 61 74 65 20 61 63 63 65 | 73 73 20 74 6f 20 74 68 |ate acce|ss to th|
|00001310| 65 20 76 69 64 65 6f 20 | 64 72 69 76 65 72 d5 73 |e video |driver.s|
|00001320| 0d 70 72 69 76 61 74 65 | 20 74 61 62 6c 65 73 2e |.private| tables.|
|00001330| 20 54 68 65 72 65 66 6f | 72 65 20 74 68 65 20 66 | Therefo|re the f|
|00001340| 69 72 73 74 20 74 69 6d | 65 20 79 6f 75 20 63 61 |irst tim|e you ca|
|00001350| 6c 6c 20 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |ll SetEn|triesQui|
|00001360| 63 6b 6c 79 28 29 20 66 | 6f 72 20 61 20 0d 70 61 |ckly() f|or a .pa|
|00001370| 72 74 69 63 75 6c 61 72 | 20 64 65 76 69 63 65 20 |rticular| device |
|00001380| 74 68 65 72 65 20 69 73 | 20 61 6e 20 65 78 74 72 |there is| an extr|
|00001390| 61 20 64 65 6c 61 79 20 | 6f 66 20 61 62 6f 75 74 |a delay |of about|
|000013a0| 20 31 20 6d 73 20 77 68 | 69 6c 65 20 73 6f 6d 65 | 1 ms wh|ile some|
|000013b0| 20 6b 65 79 0d 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | key.inf|ormation|
|000013c0| 20 69 73 20 66 65 72 72 | 65 74 65 64 20 6f 75 74 | is ferr|eted out|
|000013d0| 2e 20 54 68 61 74 20 69 | 6e 66 6f 72 6d 61 74 69 |. That i|nformati|
|000013e0| 6f 6e 20 69 73 20 63 61 | 63 68 65 64 2c 20 73 6f |on is ca|ched, so|
|000013f0| 20 73 75 62 73 65 71 75 | 65 6e 74 20 63 61 6c 6c | subsequ|ent call|
|00001400| 73 0d 66 6f 72 20 74 68 | 65 20 73 61 6d 65 20 64 |s.for th|e same d|
|00001410| 65 76 69 63 65 20 77 69 | 6c 6c 20 62 65 20 66 61 |evice wi|ll be fa|
|00001420| 73 74 2c 20 73 70 65 6e | 64 69 6e 67 20 6d 6f 73 |st, spen|ding mos|
|00001430| 74 20 6f 66 20 74 68 65 | 69 72 20 74 69 6d 65 20 |t of the|ir time |
|00001440| 6c 6f 61 64 69 6e 67 20 | 74 68 65 20 63 6c 75 74 |loading |the clut|
|00001450| 2e 0d 0d 54 77 6f 20 66 | 72 6f 6e 74 20 65 6e 64 |...Two f|ront end|
|00001460| 73 20 61 72 65 20 70 72 | 6f 76 69 64 65 64 2c 20 |s are pr|ovided, |
|00001470| 66 6f 72 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |for comp|atibilit|
|00001480| 79 20 77 69 74 68 20 74 | 77 6f 20 64 69 73 74 69 |y with t|wo disti|
|00001490| 6e 63 74 20 74 72 61 64 | 69 74 69 6f 6e 73 3a 0d |nct trad|itions:.|
|000014a0| 0d 4f 53 45 72 72 20 53 | 65 74 45 6e 74 72 69 65 |.OSErr S|etEntrie|
|000014b0| 73 51 75 69 63 6b 6c 79 | 28 47 44 48 61 6e 64 6c |sQuickly|(GDHandl|
|000014c0| 65 20 64 65 76 69 63 65 | 2c 73 68 6f 72 74 20 73 |e device|,short s|
|000014d0| 74 61 72 74 2c 73 68 6f | 72 74 20 63 6f 75 6e 74 |tart,sho|rt count|
|000014e0| 2c 43 6f 6c 6f 72 53 70 | 65 63 20 2a 74 61 62 6c |,ColorSp|ec *tabl|
|000014f0| 65 29 3b 0d 0d 53 65 74 | 45 6e 74 72 69 65 73 51 |e);..Set|EntriesQ|
|00001500| 75 69 63 6b 6c 79 28 29 | 20 75 73 65 73 20 74 68 |uickly()| uses th|
|00001510| 65 20 73 61 6d 65 20 63 | 61 6c 6c 69 6e 67 20 63 |e same c|alling c|
|00001520| 6f 6e 76 65 6e 74 69 6f | 6e 20 61 73 20 74 68 65 |onventio|n as the|
|00001530| 20 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 20 72 6f | VideoTo|olbox ro|
|00001540| 75 74 69 6e 65 0d 47 44 | 53 65 74 45 6e 74 72 69 |utine.GD|SetEntri|
|00001550| 65 73 28 29 20 61 6e 64 | 2c 20 65 78 63 65 70 74 |es() and|, except|
|00001560| 20 66 6f 72 20 61 64 64 | 69 6e 67 20 74 68 65 20 | for add|ing the |
|00001570| 47 44 48 61 6e 64 6c 65 | 20 61 72 67 75 6d 65 6e |GDHandle| argumen|
|00001580| 74 20 74 6f 20 73 70 65 | 63 69 66 79 20 74 68 65 |t to spe|cify the|
|00001590| 0d 64 65 76 69 63 65 2c | 20 69 73 20 61 6c 73 6f |.device,| is also|
|000015a0| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 41 70 70 | the sam|e as App|
|000015b0| 6c 65 d5 73 20 53 65 74 | 45 6e 74 72 69 65 73 28 |le.s Set|Entries(|
|000015c0| 29 20 43 6f 6c 6f 72 20 | 4d 61 6e 61 67 65 72 20 |) Color |Manager |
|000015d0| 72 6f 75 74 69 6e 65 2c | 0d 64 6f 63 75 6d 65 6e |routine,|.documen|
|000015e0| 74 65 64 20 69 6e 20 49 | 6e 73 69 64 65 20 4d 61 |ted in I|nside Ma|
|000015f0| 63 69 6e 74 6f 73 68 20 | 56 2d 31 34 33 2e 20 41 |cintosh |V-143. A|
|00001600| 70 70 6c 65 20 73 70 65 | 63 69 66 69 65 73 20 73 |pple spe|cifies s|
|00001610| 70 65 63 69 61 6c 20 62 | 65 68 61 76 69 6f 72 20 |pecial b|ehavior |
|00001620| 77 68 65 6e 0d 63 6f 75 | 6e 74 3d 3d 2d 31 2c 20 |when.cou|nt==-1, |
|00001630| 62 75 74 20 77 65 20 64 | 6f 6e d5 74 20 73 75 70 |but we d|on.t sup|
|00001640| 70 6f 72 74 20 74 68 61 | 74 20 68 65 72 65 20 61 |port tha|t here a|
|00001650| 6e 64 20 73 69 6d 70 6c | 79 20 72 65 74 75 72 6e |nd simpl|y return|
|00001660| 20 77 69 74 68 20 61 6e | 20 65 72 72 6f 72 2e 20 | with an| error. |
|00001670| 49 0d 73 75 67 67 65 73 | 74 20 74 68 61 74 20 6e |I.sugges|t that n|
|00001680| 65 77 20 75 73 65 72 73 | 20 75 73 65 20 53 65 74 |ew users| use Set|
|00001690| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 20 72 |EntriesQ|uickly r|
|000016a0| 61 74 68 65 72 20 74 68 | 61 74 20 6d 61 63 6c 74 |ather th|at maclt|
|000016b0| 73 65 74 2e 20 d2 73 74 | 61 72 74 d3 20 69 73 0d |set. .st|art. is.|
|000016c0| 74 68 65 20 69 6e 64 65 | 78 20 6f 66 20 74 68 65 |the inde|x of the|
|000016d0| 20 66 69 72 73 74 20 63 | 6c 75 74 20 65 6e 74 72 | first c|lut entr|
|000016e0| 79 20 74 6f 20 6c 6f 61 | 64 2c 20 61 6e 64 20 73 |y to loa|d, and s|
|000016f0| 68 6f 75 6c 64 20 62 65 | 20 67 72 65 61 74 65 72 |hould be| greater|
|00001700| 20 74 68 61 6e 20 6f 72 | 20 65 71 75 61 6c 0d 74 | than or| equal.t|
|00001710| 6f 20 7a 65 72 6f 2e 20 | d2 63 6f 75 6e 74 d3 20 |o zero. |.count. |
|00001720| 69 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |is the n|umber of|
|00001730| 20 65 6e 74 72 69 65 73 | 20 74 6f 20 6c 6f 61 64 | entries| to load|
|00001740| 2c 20 6d 69 6e 75 73 20 | 31 2e 20 28 59 65 73 2c |, minus |1. (Yes,|
|00001750| 20 d2 6d 69 6e 75 73 20 | 31 d3 2c 0d 74 68 61 74 | .minus |1.,.that|
|00001760| d5 73 20 41 70 70 6c 65 | d5 73 20 63 6f 6e 66 75 |.s Apple|.s confu|
|00001770| 73 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 2e |sing con|vention.|
|00001780| 29 20 d2 74 61 62 6c 65 | d3 20 69 73 20 61 20 43 |) .table|. is a C|
|00001790| 6f 6c 6f 72 73 70 65 63 | 20 61 72 72 61 79 2e 20 |olorspec| array. |
|000017a0| 28 45 61 63 68 20 43 6f | 6c 6f 72 53 70 65 63 0d |(Each Co|lorSpec.|
|000017b0| 65 6c 65 6d 65 6e 74 20 | 69 73 20 61 20 73 74 72 |element |is a str|
|000017c0| 75 63 74 75 72 65 20 63 | 6f 6e 73 69 73 74 69 6e |ucture c|onsistin|
|000017d0| 67 20 6f 66 20 61 20 74 | 77 6f 2d 62 79 74 65 20 |g of a t|wo-byte |
|000017e0| d2 76 61 6c 75 65 d3 2c | 20 77 68 69 63 68 20 69 |.value.,| which i|
|000017f0| 73 20 6e 6f 74 20 75 73 | 65 64 2c 20 61 6e 64 0d |s not us|ed, and.|
|00001800| 61 20 36 2d 62 79 74 65 | 20 d2 72 67 62 d3 2c 20 |a 6-byte| .rgb., |
|00001810| 77 68 69 63 68 2c 20 69 | 6e 20 74 75 72 6e 20 69 |which, i|n turn i|
|00001820| 73 20 61 20 73 74 72 75 | 63 74 75 72 65 20 6f 66 |s a stru|cture of|
|00001830| 20 74 68 72 65 65 20 31 | 36 2d 62 69 74 20 75 6e | three 1|6-bit un|
|00001840| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 0d 69 6e 74 |signed s|hort.int|
|00001850| 73 3a 20 72 65 64 2c 20 | 67 72 65 65 6e 2c 20 61 |s: red, |green, a|
|00001860| 6e 64 20 62 6c 75 65 2e | 20 41 70 70 6c 65 d5 73 |nd blue.| Apple.s|
|00001870| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 20 69 73 20 74 | convent|ion is t|
|00001880| 68 61 74 20 74 68 65 20 | 4d 4f 53 54 20 53 49 47 |hat the |MOST SIG|
|00001890| 4e 49 46 49 43 41 4e 54 | 20 42 49 54 53 0d 6f 66 |NIFICANT| BITS.of|
|000018a0| 20 74 68 65 20 31 36 2d | 62 69 74 20 63 6f 6c 6f | the 16-|bit colo|
|000018b0| 72 20 76 61 6c 75 65 73 | 20 61 72 65 20 75 73 65 |r values| are use|
|000018c0| 64 2e 20 49 74 d5 73 20 | 67 6f 6f 64 20 70 72 61 |d. It.s |good pra|
|000018d0| 63 74 69 63 65 20 69 6e | 20 79 6f 75 72 20 70 72 |ctice in| your pr|
|000018e0| 6f 67 72 61 6d 73 20 74 | 6f 0d 70 72 6f 76 69 64 |ograms t|o.provid|
|000018f0| 65 20 66 75 6c 6c 20 31 | 36 2d 62 69 74 20 76 61 |e full 1|6-bit va|
|00001900| 6c 75 65 73 2c 20 73 6f | 20 74 68 61 74 20 77 68 |lues, so| that wh|
|00001910| 65 6e 20 79 6f 75 20 75 | 70 67 72 61 64 65 20 74 |en you u|pgrade t|
|00001920| 6f 20 66 61 6e 63 69 65 | 72 20 76 69 64 65 6f 20 |o fancie|r video |
|00001930| 63 61 72 64 73 20 77 69 | 74 68 0d 6d 6f 72 65 2d |cards wi|th.more-|
|00001940| 74 68 61 6e 2d 65 69 67 | 68 74 20 62 69 74 20 44 |than-eig|ht bit D|
|00001950| 41 43 73 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |ACs your| program|
|00001960| 73 20 77 69 6c 6c 20 62 | 65 6e 65 66 69 74 20 66 |s will b|enefit f|
|00001970| 72 6f 6d 20 74 68 65 20 | 65 78 74 72 61 20 70 72 |rom the |extra pr|
|00001980| 65 63 69 73 69 6f 6e 0d | 77 69 74 68 6f 75 74 20 |ecision.|without |
|00001990| 6e 65 65 64 69 6e 67 20 | 61 6e 79 20 63 68 61 6e |needing |any chan|
|000019a0| 67 65 2e 20 52 65 74 75 | 72 6e 73 20 7a 65 72 6f |ge. Retu|rns zero|
|000019b0| 20 69 66 20 73 75 63 63 | 65 73 73 66 75 6c 2c 20 | if succ|essful, |
|000019c0| 6e 6f 6e 7a 65 72 6f 20 | 69 66 20 75 6e 73 75 63 |nonzero |if unsuc|
|000019d0| 63 65 73 73 66 75 6c 2c | 0d 69 2e 65 2e 20 69 6c |cessful,|.i.e. il|
|000019e0| 6c 65 67 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 2e |legal ar|guments.|
|000019f0| 0d 0d 73 68 6f 72 74 20 | 6d 61 63 6c 74 73 65 74 |..short |macltset|
|00001a00| 28 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |(GDHandl|e device|
|00001a10| 2c 73 68 6f 72 74 20 73 | 74 61 72 74 0d 09 2c 75 |,short s|tart..,u|
|00001a20| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 2a 20 72 |nsigned |short* r|
|00001a30| 65 64 2c 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |ed,unsig|ned shor|
|00001a40| 74 2a 20 67 72 65 65 6e | 2c 75 6e 73 69 67 6e 65 |t* green|,unsigne|
|00001a50| 64 20 73 68 6f 72 74 2a | 20 62 6c 75 65 2c 73 68 |d short*| blue,sh|
|00001a60| 6f 72 74 20 63 6f 75 6e | 74 31 29 3b 0d 0d 6d 61 |ort coun|t1);..ma|
|00001a70| 63 6c 74 73 65 74 28 29 | 20 75 73 65 73 20 61 20 |cltset()| uses a |
|00001a80| 63 61 6c 6c 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 |calling |conventi|
|00001a90| 6f 6e 20 65 73 74 61 62 | 6c 69 73 68 65 64 20 62 |on estab|lished b|
|00001aa0| 79 20 52 61 79 6e 61 6c | 64 20 43 6f 6d 74 6f 69 |y Raynal|d Comtoi|
|00001ab0| 73 2c 20 61 6e 64 0d 70 | 72 6f 76 69 64 65 73 20 |s, and.p|rovides |
|00001ac0| 62 61 63 6b 77 61 72 64 | 20 63 6f 6d 70 61 74 69 |backward| compati|
|00001ad0| 62 69 6c 69 74 79 20 77 | 69 74 68 20 6f 6c 64 65 |bility w|ith olde|
|00001ae0| 72 20 70 72 6f 67 72 61 | 6d 73 2e 20 d2 72 65 64 |r progra|ms. .red|
|00001af0| d3 2c 20 d2 67 72 65 65 | 6e d3 2c 20 61 6e 64 20 |., .gree|n., and |
|00001b00| d2 62 6c 75 65 d3 0d 61 | 72 65 20 61 72 72 61 79 |.blue..a|re array|
|00001b10| 73 20 6f 66 20 31 36 2d | 62 69 74 20 75 6e 73 69 |s of 16-|bit unsi|
|00001b20| 67 6e 65 64 20 73 68 6f | 72 74 20 69 6e 74 73 2c |gned sho|rt ints,|
|00001b30| 20 6f 66 20 77 68 69 63 | 68 20 74 68 65 20 4c 45 | of whic|h the LE|
|00001b40| 41 53 54 20 53 49 47 4e | 49 46 49 43 41 4e 54 20 |AST SIGN|IFICANT |
|00001b50| 42 49 54 53 0d 61 72 65 | 20 75 73 65 64 2e 20 d2 |BITS.are| used. .|
|00001b60| 73 74 61 72 74 d3 20 69 | 73 20 74 68 65 20 69 6e |start. i|s the in|
|00001b70| 64 65 78 20 6f 66 20 74 | 68 65 20 66 69 72 73 74 |dex of t|he first|
|00001b80| 20 65 6e 74 72 79 20 74 | 6f 20 63 68 61 6e 67 65 | entry t|o change|
|00001b90| 2e 20 d2 63 6f 75 6e 74 | 31 d3 20 69 73 20 74 68 |. .count|1. is th|
|00001ba0| 65 0d 6e 75 6d 62 65 72 | 20 6f 66 20 65 6e 74 72 |e.number| of entr|
|00001bb0| 69 65 73 20 74 6f 20 63 | 68 61 6e 67 65 20 28 63 |ies to c|hange (c|
|00001bc0| 6f 6e 74 72 61 72 79 20 | 74 6f 20 41 70 70 6c 65 |ontrary |to Apple|
|00001bd0| d5 73 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 29 2e 0d |.s conve|ntion)..|
|00001be0| 0d 42 6f 74 68 20 66 72 | 6f 6e 74 20 65 6e 64 73 |.Both fr|ont ends|
|00001bf0| 20 75 73 65 20 74 68 65 | 20 73 61 6d 65 20 67 65 | use the| same ge|
|00001c00| 6e 65 72 61 6c 2d 70 75 | 72 70 6f 73 65 20 73 75 |neral-pu|rpose su|
|00001c10| 62 72 6f 75 74 69 6e 65 | 3a 20 4c 6f 61 64 43 6c |broutine|: LoadCl|
|00001c20| 75 74 28 29 2c 20 77 68 | 69 63 68 20 69 6e 0d 74 |ut(), wh|ich in.t|
|00001c30| 75 72 6e 20 63 61 6c 6c | 73 20 74 68 65 20 68 61 |urn call|s the ha|
|00001c40| 72 64 77 61 72 65 2d 73 | 70 65 63 69 66 69 63 20 |rdware-s|pecific |
|00001c50| 72 6f 75 74 69 6e 65 20 | 61 70 70 72 6f 70 72 69 |routine |appropri|
|00001c60| 61 74 65 20 74 6f 20 74 | 68 65 20 70 61 72 74 69 |ate to t|he parti|
|00001c70| 63 75 6c 61 72 20 76 69 | 64 65 6f 20 0d 64 65 76 |cular vi|deo .dev|
|00001c80| 69 63 65 20 62 65 69 6e | 67 20 75 73 65 64 2e 0d |ice bein|g used..|
|00001c90| 0d 54 68 65 20 75 73 65 | 4d 6f 73 74 53 69 67 6e |.The use|MostSign|
|00001ca0| 69 66 69 63 61 6e 74 42 | 69 74 73 20 62 69 74 20 |ificantB|its bit |
|00001cb0| 6f 66 20 74 68 65 20 d2 | 66 6c 61 67 73 d3 20 61 |of the .|flags. a|
|00001cc0| 72 67 75 6d 65 6e 74 20 | 73 70 65 63 69 66 69 65 |rgument |specifie|
|00001cd0| 73 20 77 68 65 74 68 65 | 72 20 74 6f 20 75 73 65 |s whethe|r to use|
|00001ce0| 20 0d 41 70 70 6c 65 d5 | 73 20 63 6f 6e 76 65 6e | .Apple.|s conven|
|00001cf0| 74 69 6f 6e 20 28 66 6f | 72 20 75 73 65 72 73 20 |tion (fo|r users |
|00001d00| 6f 66 20 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |of SetEn|triesQui|
|00001d10| 63 6b 6c 79 29 20 6f 72 | 20 52 61 79 6e 61 6c 64 |ckly) or| Raynald|
|00001d20| d5 73 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 20 0d 28 |.s conve|ntion .(|
|00001d30| 66 6f 72 20 75 73 65 72 | 73 20 6f 66 20 6d 61 63 |for user|s of mac|
|00001d40| 6c 74 73 65 74 29 2e 0d | 0d 41 74 20 74 68 65 20 |ltset)..|.At the |
|00001d50| 6d 6f 6d 65 6e 74 20 61 | 6c 6c 20 74 68 65 20 73 |moment a|ll the s|
|00001d60| 75 70 70 6f 72 74 65 64 | 20 76 69 64 65 6f 20 63 |upported| video c|
|00001d70| 61 72 64 73 20 68 61 76 | 65 20 38 2d 62 69 74 20 |ards hav|e 8-bit |
|00001d80| 44 41 43 73 2c 20 65 78 | 63 65 70 74 20 74 68 65 |DACs, ex|cept the|
|00001d90| 20 52 61 73 74 65 72 4f | 70 73 0d 50 72 6f 43 6f | RasterO|ps.ProCo|
|00001da0| 6c 6f 72 20 33 32 2c 20 | 77 68 69 63 68 20 68 61 |lor 32, |which ha|
|00001db0| 73 20 39 2d 62 69 74 20 | 44 41 43 73 2e 20 49 66 |s 9-bit |DACs. If|
|00001dc0| 20 74 68 65 20 75 73 65 | 4d 6f 73 74 53 69 67 6e | the use|MostSign|
|00001dd0| 69 66 69 63 61 6e 74 42 | 69 74 73 20 66 6c 61 67 |ificantB|its flag|
|00001de0| 20 69 73 20 74 72 75 65 | 0d 74 68 65 6e 20 79 6f | is true|.then yo|
|00001df0| 75 20 64 6f 6e d5 74 20 | 6e 65 65 64 20 74 6f 20 |u don.t |need to |
|00001e00| 77 6f 72 72 79 2c 20 61 | 73 20 74 68 65 20 6c 65 |worry, a|s the le|
|00001e10| 61 73 74 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 |ast sign|ificant |
|00001e20| 62 69 74 20 6f 66 20 74 | 68 65 20 39 2d 62 69 74 |bit of t|he 9-bit|
|00001e30| 20 44 41 43 0d 73 69 6d | 70 6c 79 20 70 69 63 6b | DAC.sim|ply pick|
|00001e40| 73 20 75 70 20 74 68 65 | 20 6e 65 78 74 20 6c 6f |s up the| next lo|
|00001e50| 77 65 72 20 62 69 74 20 | 66 72 6f 6d 20 79 6f 75 |wer bit |from you|
|00001e60| 72 20 6e 75 6d 62 65 72 | 73 2c 20 67 69 76 69 6e |r number|s, givin|
|00001e70| 67 20 79 6f 75 20 61 20 | 74 61 64 20 6d 6f 72 65 |g you a |tad more|
|00001e80| 0d 70 72 65 63 69 73 69 | 6f 6e 2e 20 48 6f 77 65 |.precisi|on. Howe|
|00001e90| 76 65 72 2c 20 69 66 20 | 75 73 65 4d 6f 73 74 53 |ver, if |useMostS|
|00001ea0| 69 67 6e 69 66 69 63 61 | 6e 74 42 69 74 73 20 66 |ignifica|ntBits f|
|00001eb0| 6c 61 67 20 69 73 20 66 | 61 6c 73 65 20 74 68 65 |lag is f|alse the|
|00001ec0| 6e 2c 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 0d 75 |n, in or|der to.u|
|00001ed0| 73 65 20 74 68 65 20 66 | 75 6c 6c 20 72 61 6e 67 |se the f|ull rang|
|00001ee0| 65 20 6f 66 20 74 68 65 | 20 44 41 43 20 79 6f 75 |e of the| DAC you|
|00001ef0| 20 6d 75 73 74 20 6d 61 | 6b 65 20 61 6c 6c 20 79 | must ma|ke all y|
|00001f00| 6f 75 72 20 6e 75 6d 62 | 65 72 73 20 74 77 69 63 |our numb|ers twic|
|00001f10| 65 20 61 73 20 62 69 67 | 2c 20 6f 72 20 2d 2d 0d |e as big|, or --.|
|00001f20| 63 6c 75 64 67 65 20 74 | 69 6d 65 21 20 2d 2d 20 |cludge t|ime! -- |
|00001f30| 73 65 74 20 74 68 65 20 | 75 73 65 4f 6e 6c 79 38 |set the |useOnly8|
|00001f40| 42 69 74 73 20 66 6c 61 | 67 2c 20 74 6f 20 72 65 |Bits fla|g, to re|
|00001f50| 71 75 65 73 74 20 74 68 | 61 74 20 79 6f 75 72 20 |quest th|at your |
|00001f60| 38 2d 62 69 74 20 6e 75 | 6d 62 65 72 73 20 62 65 |8-bit nu|mbers be|
|00001f70| 0d 6d 75 6c 74 69 70 6c | 69 65 64 20 62 79 20 74 |.multipl|ied by t|
|00001f80| 77 6f 2c 20 61 6c 6c 6f | 77 69 6e 67 20 79 6f 75 |wo, allo|wing you|
|00001f90| 20 74 6f 20 75 73 65 20 | 74 68 65 20 77 68 6f 6c | to use |the whol|
|00001fa0| 65 20 72 61 6e 67 65 20 | 6f 66 20 74 68 65 20 44 |e range |of the D|
|00001fb0| 41 43 20 77 69 74 68 6f | 75 74 0d 63 68 61 6e 67 |AC witho|ut.chang|
|00001fc0| 69 6e 67 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 |ing the |rest of |
|00001fd0| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 2c 20 62 75 |your pro|gram, bu|
|00001fe0| 74 20 77 61 73 74 69 6e | 67 20 74 68 65 20 44 41 |t wastin|g the DA|
|00001ff0| 43 d5 73 20 6c 65 61 73 | 74 20 73 69 67 6e 69 66 |C.s leas|t signif|
|00002000| 69 63 61 6e 74 20 62 69 | 74 0d 62 79 20 73 65 74 |icant bi|t.by set|
|00002010| 74 69 6e 67 20 69 74 20 | 70 65 72 6d 61 6e 65 6e |ting it |permanen|
|00002020| 74 6c 79 20 74 6f 20 7a | 65 72 6f 2e 0d 0d 53 55 |tly to z|ero...SU|
|00002030| 53 50 45 4e 44 49 4e 47 | 20 49 4e 54 45 52 52 55 |SPENDING| INTERRU|
|00002040| 50 54 53 2e 20 49 66 20 | 79 6f 75 20 77 69 73 68 |PTS. If |you wish|
|00002050| 2c 20 74 68 65 20 6c 6f | 77 2d 6c 65 76 65 6c 20 |, the lo|w-level |
|00002060| 72 6f 75 74 69 6e 65 73 | 20 77 69 6c 6c 20 73 75 |routines| will su|
|00002070| 73 70 65 6e 64 0d 69 6e | 74 65 72 72 75 70 74 73 |spend.in|terrupts|
|00002080| 20 77 68 69 6c 65 20 6c | 6f 61 64 69 6e 67 20 74 | while l|oading t|
|00002090| 68 65 20 63 6c 75 74 2e | 20 50 72 65 73 75 6d 61 |he clut.| Presuma|
|000020a0| 62 6c 79 20 52 61 79 6e | 61 6c 64 20 68 61 64 20 |bly Rayn|ald had |
|000020b0| 68 69 73 20 72 65 61 73 | 6f 6e 73 20 66 6f 72 0d |his reas|ons for.|
|000020c0| 69 6d 70 6c 65 6d 65 6e | 74 69 6e 67 20 74 68 69 |implemen|ting thi|
|000020d0| 73 2c 20 73 6f 20 74 68 | 69 73 20 d2 66 65 61 74 |s, so th|is .feat|
|000020e0| 75 72 65 d3 20 69 73 20 | 65 6e 61 62 6c 65 64 20 |ure. is |enabled |
|000020f0| 77 68 65 6e 20 79 6f 75 | 20 75 73 65 20 6d 61 63 |when you| use mac|
|00002100| 6c 74 73 65 74 28 29 2e | 20 50 65 74 65 72 0d 4c |ltset().| Peter.L|
|00002110| 65 6e 6e 69 65 20 77 72 | 69 74 65 73 2c 20 d2 54 |ennie wr|ites, .T|
|00002120| 68 65 20 73 77 69 74 63 | 68 20 74 6f 20 75 6e 69 |he switc|h to uni|
|00002130| 6e 74 65 72 72 75 70 74 | 61 62 6c 65 20 70 72 6f |nterrupt|able pro|
|00002140| 63 65 73 73 69 6e 67 20 | 64 75 72 69 6e 67 20 74 |cessing |during t|
|00002150| 68 65 20 77 72 69 74 65 | 20 69 73 2c 20 49 0d 74 |he write| is, I.t|
|00002160| 68 69 6e 6b 2c 20 6f 75 | 74 20 6f 66 20 74 68 65 |hink, ou|t of the|
|00002170| 20 6f 72 69 67 69 6e 61 | 6c 20 64 72 69 76 65 72 | origina|l driver|
|00002180| 73 20 28 74 68 6f 75 67 | 68 20 49 d5 6d 20 6e 6f |s (thoug|h I.m no|
|00002190| 74 20 61 62 73 6f 6c 75 | 74 65 6c 79 20 73 75 72 |t absolu|tely sur|
|000021a0| 65 29 2e 20 20 49 20 69 | 6d 61 67 69 6e 65 0d 69 |e). I i|magine.i|
|000021b0| 74 d5 73 20 74 6f 20 61 | 76 6f 69 64 20 64 69 73 |t.s to a|void dis|
|000021c0| 70 6c 61 79 20 67 6c 69 | 74 63 68 65 73 20 74 68 |play gli|tches th|
|000021d0| 61 74 20 77 6f 75 6c 64 | 20 72 65 73 75 6c 74 20 |at would| result |
|000021e0| 66 72 6f 6d 20 73 6f 6d | 65 20 68 69 67 68 65 72 |from som|e higher|
|000021f0| 20 70 72 69 6f 72 69 74 | 79 0d 69 6e 74 65 72 72 | priorit|y.interr|
|00002200| 75 70 74 20 73 75 73 70 | 65 6e 64 69 6e 67 20 61 |upt susp|ending a|
|00002210| 20 63 6c 75 74 20 72 65 | 77 72 69 74 65 20 73 6f | clut re|write so|
|00002220| 6d 65 77 68 65 72 65 20 | 69 6e 20 74 68 65 20 6d |mewhere |in the m|
|00002230| 69 64 64 6c 65 2e d3 20 | 48 6f 77 65 76 65 72 2c |iddle.. |However,|
|00002240| 20 49 20 28 64 67 70 29 | 0d 64 6f 6e d5 74 20 73 | I (dgp)|.don.t s|
|00002250| 65 65 20 61 6e 79 20 61 | 64 76 61 6e 74 61 67 65 |ee any a|dvantage|
|00002260| 20 74 6f 20 73 75 73 70 | 65 6e 64 69 6e 67 20 69 | to susp|ending i|
|00002270| 6e 74 65 72 72 75 70 74 | 73 2c 20 61 6e 64 20 62 |nterrupt|s, and b|
|00002280| 65 6c 69 65 76 65 20 74 | 68 61 74 20 74 68 65 72 |elieve t|hat ther|
|00002290| 65 20 69 73 20 61 0d 73 | 69 67 6e 69 66 69 63 61 |e is a.s|ignifica|
|000022a0| 6e 74 20 64 6f 77 6e 73 | 69 64 65 20 69 66 20 79 |nt downs|ide if y|
|000022b0| 6f 75 20 61 72 65 20 74 | 72 79 69 6e 67 20 74 6f |ou are t|rying to|
|000022c0| 20 6b 65 65 70 20 74 72 | 61 63 6b 20 6f 66 20 74 | keep tr|ack of t|
|000022d0| 68 65 20 56 42 4c 20 69 | 6e 74 65 72 72 75 70 74 |he VBL i|nterrupt|
|000022e0| 73 20 6f 6e 0d 73 65 76 | 65 72 61 6c 20 76 69 64 |s on.sev|eral vid|
|000022f0| 65 6f 20 63 61 72 64 73 | 2c 20 73 69 6e 63 65 20 |eo cards|, since |
|00002300| 73 75 73 70 65 6e 64 69 | 6e 67 20 69 6e 74 65 72 |suspendi|ng inter|
|00002310| 72 75 70 74 73 20 66 6f | 72 20 31 20 6f 72 20 32 |rupts fo|r 1 or 2|
|00002320| 20 6d 73 20 6d 69 67 68 | 74 20 62 65 20 6c 6f 6e | ms migh|t be lon|
|00002330| 67 0d 65 6e 6f 75 67 68 | 20 74 6f 20 6d 69 73 73 |g.enough| to miss|
|00002340| 20 61 20 77 68 6f 6c 65 | 20 56 42 4c 20 69 6e 74 | a whole| VBL int|
|00002350| 65 72 76 61 6c 2e 20 54 | 68 75 73 20 53 65 74 45 |erval. T|hus SetE|
|00002360| 6e 74 72 69 65 73 51 75 | 69 63 6b 6c 79 20 64 69 |ntriesQu|ickly di|
|00002370| 73 61 62 6c 65 73 20 74 | 68 69 73 0d d2 66 65 61 |sables t|his..fea|
|00002380| 74 75 72 65 d3 2e 20 48 | 6f 77 65 76 65 72 2c 20 |ture.. H|owever, |
|00002390| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 61 20 70 68 |this is |not a ph|
|000023a0| 69 6c 6f 73 6f 70 68 69 | 63 61 6c 20 64 65 62 61 |ilosophi|cal deba|
|000023b0| 74 65 2e 20 57 65 20 61 | 6c 6c 20 61 67 72 65 65 |te. We a|ll agree|
|000023c0| 20 74 68 61 74 0d 69 6e | 74 65 72 72 75 70 74 73 | that.in|terrupts|
|000023d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 73 75 73 70 65 | should |be suspe|
|000023e0| 6e 64 65 64 20 69 66 20 | 64 6f 69 6e 67 20 6f 74 |nded if |doing ot|
|000023f0| 68 65 72 77 69 73 65 20 | 77 6f 75 6c 64 20 6f 63 |herwise |would oc|
|00002400| 63 61 73 69 6f 6e 61 6c | 6c 79 20 72 65 73 75 6c |casional|ly resul|
|00002410| 74 20 69 6e 20 61 0d 76 | 69 73 69 62 6c 65 20 67 |t in a.v|isible g|
|00002420| 6c 69 74 63 68 2e 20 44 | 6f 65 73 20 61 6e 79 6f |litch. D|oes anyo|
|00002430| 6e 65 20 6b 6e 6f 77 3f | 0d 0d 4f 53 45 72 72 20 |ne know?|..OSErr |
|00002440| 57 61 69 74 46 6f 72 4e | 65 78 74 42 6c 61 6e 6b |WaitForN|extBlank|
|00002450| 69 6e 67 28 47 44 48 61 | 6e 64 6c 65 20 64 65 76 |ing(GDHa|ndle dev|
|00002460| 69 63 65 29 3b 0d 0d 57 | 61 69 74 73 20 66 6f 72 |ice);..W|aits for|
|00002470| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 6e 65 | beginni|ng of ne|
|00002480| 78 74 20 62 6c 61 6e 6b | 69 6e 67 20 69 6e 74 65 |xt blank|ing inte|
|00002490| 72 76 61 6c 2e 20 43 75 | 72 72 65 6e 74 6c 79 20 |rval. Cu|rrently |
|000024a0| 74 68 69 73 20 73 75 70 | 70 6f 72 74 73 20 6f 6e |this sup|ports on|
|000024b0| 6c 79 20 74 68 65 0d 54 | 6f 62 79 20 61 6e 64 20 |ly the.T|oby and |
|000024c0| 48 69 52 65 73 20 63 61 | 72 64 73 20 28 41 70 70 |HiRes ca|rds (App|
|000024d0| 6c 65 d5 73 20 6f 72 69 | 67 69 6e 61 6c 20 76 69 |le.s ori|ginal vi|
|000024e0| 64 65 6f 20 63 61 72 64 | 73 2c 20 6e 6f 77 20 6f |deo card|s, now o|
|000024f0| 62 73 6f 6c 65 74 65 29 | 2e 0d 0d 53 50 45 45 44 |bsolete)|...SPEED|
|00002500| 2e 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |. SetEnt|riesQuic|
|00002510| 6b 6c 79 28 29 20 69 73 | 20 73 65 6c 66 20 63 6f |kly() is| self co|
|00002520| 6e 74 61 69 6e 65 64 2e | 20 59 6f 75 20 73 69 6d |ntained.| You sim|
|00002530| 70 6c 79 20 67 69 76 65 | 20 69 74 20 74 68 65 20 |ply give| it the |
|00002540| 47 44 48 61 6e 64 6c 65 | 20 6f 66 0d 79 6f 75 72 |GDHandle| of.your|
|00002550| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 20 28 61 | video d|evice (a|
|00002560| 73 20 72 65 74 75 72 6e | 65 64 2c 20 65 2e 67 2e |s return|ed, e.g.|
|00002570| 20 62 79 20 47 65 74 53 | 63 72 65 65 6e 44 65 76 | by GetS|creenDev|
|00002580| 69 63 65 29 2c 20 61 6e | 64 20 74 65 6c 6c 20 69 |ice), an|d tell i|
|00002590| 74 20 77 68 61 74 20 79 | 6f 75 0d 77 61 6e 74 20 |t what y|ou.want |
|000025a0| 74 6f 20 64 6f 20 74 6f | 20 74 68 65 20 63 6c 75 |to do to| the clu|
|000025b0| 74 2e 20 49 6e 20 6f 72 | 64 65 72 20 74 6f 20 64 |t. In or|der to d|
|000025c0| 6f 20 74 68 69 73 20 66 | 6f 72 20 79 6f 75 20 69 |o this f|or you i|
|000025d0| 74 20 6e 65 65 64 73 20 | 74 6f 20 66 69 67 75 72 |t needs |to figur|
|000025e0| 65 20 6f 75 74 20 61 0d | 62 75 6e 63 68 20 6f 66 |e out a.|bunch of|
|000025f0| 20 73 74 75 66 66 20 61 | 62 6f 75 74 20 79 6f 75 | stuff a|bout you|
|00002600| 72 20 76 69 64 65 6f 20 | 64 65 76 69 63 65 2e 20 |r video |device. |
|00002610| 54 68 69 73 20 72 65 73 | 65 61 72 63 68 20 74 61 |This res|earch ta|
|00002620| 6b 65 73 20 74 69 6d 65 | 3b 20 74 68 65 20 66 69 |kes time|; the fi|
|00002630| 72 73 74 20 74 69 6d 65 | 0d 79 6f 75 20 63 61 6c |rst time|.you cal|
|00002640| 6c 20 69 74 20 66 6f 72 | 20 61 20 70 61 72 74 69 |l it for| a parti|
|00002650| 63 75 6c 61 72 20 64 65 | 76 69 63 65 20 69 74 20 |cular de|vice it |
|00002660| 74 61 6b 65 73 20 6f 6e | 20 74 68 65 20 6f 72 64 |takes on| the ord|
|00002670| 65 72 20 6f 66 20 31 20 | 6d 73 20 74 6f 20 6c 6f |er of 1 |ms to lo|
|00002680| 6f 6b 20 75 70 0d 73 74 | 75 66 66 2e 20 48 6f 77 |ok up.st|uff. How|
|00002690| 65 76 65 72 2c 20 69 74 | 20 73 61 76 65 73 20 74 |ever, it| saves t|
|000026a0| 68 69 73 20 69 6e 66 6f | 20 69 6e 20 61 20 63 61 |his info| in a ca|
|000026b0| 63 68 65 2c 20 66 6f 72 | 20 65 61 63 68 20 64 65 |che, for| each de|
|000026c0| 76 69 63 65 2c 20 66 6f | 72 20 71 75 69 63 6b 0d |vice, fo|r quick.|
|000026d0| 72 65 74 72 69 65 76 61 | 6c 20 6f 6e 20 73 75 62 |retrieva|l on sub|
|000026e0| 73 65 71 75 65 6e 74 20 | 6f 63 63 61 73 69 6f 6e |sequent |occasion|
|000026f0| 73 2e 20 54 68 65 20 69 | 6d 70 6c 69 63 61 74 69 |s. The i|mplicati|
|00002700| 6f 6e 20 69 73 20 74 68 | 61 74 20 70 72 6f 67 72 |on is th|at progr|
|00002710| 61 6d 73 20 74 68 61 74 | 20 75 73 65 0d 53 65 74 |ams that| use.Set|
|00002720| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 20 6f |EntriesQ|uickly o|
|00002730| 75 67 68 74 20 74 6f 20 | 63 61 6c 6c 20 69 74 20 |ught to |call it |
|00002740| 6f 6e 63 65 20 6a 75 73 | 74 20 66 6f 72 20 70 72 |once jus|t for pr|
|00002750| 61 63 74 69 63 65 20 28 | 74 6f 20 67 65 74 20 74 |actice (|to get t|
|00002760| 68 65 20 63 61 63 68 65 | 0d 6c 6f 61 64 69 6e 67 |he cache|.loading|
|00002770| 20 6f 76 65 72 20 77 69 | 74 68 29 20 62 65 66 6f | over wi|th) befo|
|00002780| 72 65 20 75 73 69 6e 67 | 20 69 74 20 69 6e 20 61 |re using| it in a|
|00002790| 20 73 69 74 75 61 74 69 | 6f 6e 20 77 68 65 72 65 | situati|on where|
|000027a0| 20 73 70 65 65 64 20 6d | 61 74 74 65 72 73 2e 0d | speed m|atters..|
|000027b0| 0d 54 68 65 20 63 6f 64 | 69 6e 67 20 6f 66 20 74 |.The cod|ing of t|
|000027c0| 68 65 20 4c 6f 61 64 43 | 6c 75 74 20 d2 64 72 69 |he LoadC|lut .dri|
|000027d0| 76 65 72 d3 20 72 6f 75 | 74 69 6e 65 73 20 69 73 |ver. rou|tines is|
|000027e0| 20 61 20 63 6f 6d 70 72 | 6f 6d 69 73 65 20 62 65 | a compr|omise be|
|000027f0| 74 77 65 65 6e 20 74 68 | 65 20 6e 65 65 64 73 0d |tween th|e needs.|
|00002800| 6f 66 20 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |of SetEn|triesQui|
|00002810| 63 6b 6c 79 20 61 6e 64 | 20 6d 61 63 6c 74 73 65 |ckly and| macltse|
|00002820| 74 2c 20 77 68 69 63 68 | 20 62 6f 74 68 20 75 73 |t, which| both us|
|00002830| 65 20 74 68 65 6d 2e 20 | 49 20 64 65 63 69 64 65 |e them. |I decide|
|00002840| 64 20 6e 6f 74 20 74 6f | 20 77 72 69 74 65 0d 73 |d not to| write.s|
|00002850| 65 70 61 72 61 74 65 20 | 63 6c 75 74 20 6c 6f 61 |eparate |clut loa|
|00002860| 64 69 6e 67 20 6c 6f 6f | 70 73 20 66 6f 72 20 74 |ding loo|ps for t|
|00002870| 68 65 20 74 77 6f 20 63 | 61 73 65 73 20 28 75 73 |he two c|ases (us|
|00002880| 65 20 6d 6f 73 74 2d 20 | 76 73 2e 20 6c 65 61 73 |e most- |vs. leas|
|00002890| 74 2d 73 69 67 6e 69 66 | 69 63 61 6e 74 0d 62 69 |t-signif|icant.bi|
|000028a0| 74 73 29 2e 20 49 20 62 | 65 6c 69 65 76 65 20 28 |ts). I b|elieve (|
|000028b0| 62 75 74 20 68 61 76 65 | 20 6e 6f 74 20 74 65 73 |but have| not tes|
|000028c0| 74 65 64 29 20 74 68 61 | 74 20 61 64 64 69 6e 67 |ted) tha|t adding|
|000028d0| 20 61 20 72 65 67 69 73 | 74 65 72 20 6f 66 66 73 | a regis|ter offs|
|000028e0| 65 74 20 69 6e 73 74 65 | 61 64 20 6f 66 0d 75 73 |et inste|ad of.us|
|000028f0| 69 6e 67 20 61 6e 20 61 | 75 74 6f 69 6e 63 72 65 |ing an a|utoincre|
|00002900| 6d 65 6e 74 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |ment ins|truction|
|00002910| 20 69 6e 63 75 72 73 20 | 65 73 73 65 6e 74 69 61 | incurs |essentia|
|00002920| 6c 6c 79 20 6e 6f 20 74 | 69 6d 65 20 70 65 6e 61 |lly no t|ime pena|
|00002930| 6c 74 79 20 62 65 63 61 | 75 73 65 0d 74 68 65 20 |lty beca|use.the |
|00002940| 70 72 6f 63 65 73 73 6f | 72 20 61 75 74 6f 6d 61 |processo|r automa|
|00002950| 74 69 63 61 6c 6c 79 20 | 6f 76 65 72 6c 61 70 73 |tically |overlaps|
|00002960| 20 74 68 65 20 65 78 65 | 63 75 74 69 6f 6e 20 6f | the exe|cution o|
|00002970| 66 20 73 75 63 68 20 69 | 6e 73 74 72 75 63 74 69 |f such i|nstructi|
|00002980| 6f 6e 73 2e 20 53 6f 20 | 49 0d 74 68 69 6e 6b 20 |ons. So |I.think |
|00002990| 74 68 61 74 20 53 65 74 | 45 6e 74 72 69 65 73 51 |that Set|EntriesQ|
|000029a0| 75 69 63 6b 6c 79 20 69 | 73 20 72 75 6e 6e 69 6e |uickly i|s runnin|
|000029b0| 67 20 66 6c 61 74 20 6f | 75 74 2c 20 61 6e 64 20 |g flat o|ut, and |
|000029c0| 64 6f 6e d5 74 20 73 65 | 65 20 61 6e 79 20 70 72 |don.t se|e any pr|
|000029d0| 6f 73 70 65 63 74 20 6f | 66 0d 73 70 65 65 64 69 |ospect o|f.speedi|
|000029e0| 6e 67 20 69 74 20 75 70 | 20 73 69 67 6e 69 66 69 |ng it up| signifi|
|000029f0| 63 61 6e 74 6c 79 2e 20 | 4f 6e 20 74 68 65 20 6f |cantly. |On the o|
|00002a00| 74 68 65 72 20 68 61 6e | 64 2c 20 49 20 73 75 73 |ther han|d, I sus|
|00002a10| 70 65 63 74 20 74 68 61 | 74 20 66 65 74 63 68 69 |pect tha|t fetchi|
|00002a20| 6e 67 20 74 68 65 0d 6c | 65 61 73 74 20 73 69 67 |ng the.l|east sig|
|00002a30| 6e 69 66 69 63 61 6e 74 | 20 62 79 74 65 20 62 79 |nificant| byte by|
|00002a40| 20 64 6f 69 6e 67 20 61 | 20 62 79 74 65 20 61 63 | doing a| byte ac|
|00002a50| 63 65 73 73 20 74 6f 20 | 61 6e 20 6f 64 64 20 61 |cess to |an odd a|
|00002a60| 64 64 72 65 73 73 20 28 | 66 6f 72 20 6d 61 63 6c |ddress (|for macl|
|00002a70| 74 73 65 74 29 0d 64 6f | 65 73 20 73 6c 6f 77 20 |tset).do|es slow |
|00002a80| 74 68 69 6e 67 73 20 64 | 6f 77 6e 20 70 65 72 68 |things d|own perh|
|00002a90| 61 70 73 20 33 30 25 20 | 28 74 68 6f 75 67 68 20 |aps 30% |(though |
|00002aa0| 49 20 68 61 76 65 6e d5 | 74 20 74 69 6d 65 64 20 |I haven.|t timed |
|00002ab0| 69 74 29 20 6f 76 65 72 | 20 64 6f 69 6e 67 20 61 |it) over| doing a|
|00002ac0| 20 77 6f 72 64 0d 61 63 | 63 65 73 73 20 74 6f 20 | word.ac|cess to |
|00002ad0| 61 6e 20 65 76 65 6e 20 | 61 64 64 72 65 73 73 2c |an even |address,|
|00002ae0| 20 61 73 20 52 61 79 6e | 61 6c 64 20 68 61 64 20 | as Rayn|ald had |
|00002af0| 6f 72 69 67 69 6e 61 6c | 6c 79 20 63 6f 64 65 64 |original|ly coded|
|00002b00| 20 69 74 2e 20 49 66 20 | 74 68 61 74 20 73 70 65 | it. If |that spe|
|00002b10| 65 64 0d 6c 6f 73 73 20 | 69 73 20 75 6e 61 63 63 |ed.loss |is unacc|
|00002b20| 65 70 74 61 62 6c 65 2c | 20 74 68 65 6e 20 6f 6e |eptable,| then on|
|00002b30| 65 20 63 6f 75 6c 64 20 | 69 6e 73 65 72 74 20 61 |e could |insert a|
|00002b40| 6e 20 69 66 28 66 6c 61 | 67 73 26 75 73 65 4d 6f |n if(fla|gs&useMo|
|00002b50| 73 74 53 69 67 6e 69 66 | 69 63 61 6e 74 42 69 74 |stSignif|icantBit|
|00002b60| 73 29 0d 73 74 61 74 65 | 6d 65 6e 74 20 69 6e 74 |s).state|ment int|
|00002b70| 6f 20 74 68 65 20 72 65 | 6c 65 76 61 6e 74 20 73 |o the re|levant s|
|00002b80| 75 62 72 6f 75 74 69 6e | 65 20 61 6e 64 20 77 72 |ubroutin|e and wr|
|00002b90| 69 74 65 20 74 77 6f 20 | 73 65 70 61 72 61 74 65 |ite two |separate|
|00002ba0| 20 6c 6f 6f 70 73 20 6f | 70 74 69 6d 69 7a 65 64 | loops o|ptimized|
|00002bb0| 0d 66 6f 72 20 74 68 65 | 20 74 77 6f 20 63 61 73 |.for the| two cas|
|00002bc0| 65 73 2e 20 4d 79 20 67 | 75 65 73 73 20 69 73 20 |es. My g|uess is |
|00002bd0| 74 68 61 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |that the| current|
|00002be0| 20 63 6f 6d 70 72 6f 6d | 69 73 65 20 77 69 6c 6c | comprom|ise will|
|00002bf0| 20 62 65 20 61 63 63 65 | 70 74 61 62 6c 65 20 74 | be acce|ptable t|
|00002c00| 6f 0d 61 6c 6c 20 75 73 | 65 72 73 2e 0d 0d 41 20 |o.all us|ers...A |
|00002c10| 4e 4f 54 45 20 4f 4e 20 | 53 50 45 45 44 20 46 52 |NOTE ON |SPEED FR|
|00002c20| 4f 4d 20 44 41 56 49 44 | 20 42 52 41 49 4e 41 52 |OM DAVID| BRAINAR|
|00002c30| 44 3a 0d 57 65 20 68 61 | 76 65 20 62 65 65 6e 20 |D:.We ha|ve been |
|00002c40| 6c 6f 6f 6b 69 6e 67 20 | 70 72 65 74 74 79 20 63 |looking |pretty c|
|00002c50| 6c 6f 73 65 6c 79 20 61 | 74 20 76 69 64 65 6f 20 |losely a|t video |
|00002c60| 74 69 6d 69 6e 67 2e 20 | 20 49 6e 20 6f 75 72 20 |timing. | In our |
|00002c70| 68 61 6e 64 73 2c 0d 53 | 65 74 45 6e 74 72 69 65 |hands,.S|etEntrie|
|00002c80| 73 51 75 69 63 6b 6c 79 | 20 64 6f 65 73 20 6e 6f |sQuickly| does no|
|00002c90| 74 20 61 6c 77 61 79 73 | 20 73 75 63 63 65 65 64 |t always| succeed|
|00002ca0| 20 69 6e 20 77 72 69 74 | 69 6e 67 20 74 68 65 20 | in writ|ing the |
|00002cb0| 43 4c 55 54 20 64 75 72 | 69 6e 67 20 74 68 65 0d |CLUT dur|ing the.|
|00002cc0| 76 65 72 74 69 63 61 6c | 20 62 6c 61 6e 6b 20 69 |vertical| blank i|
|00002cd0| 6e 74 65 72 76 61 6c 2e | 20 20 49 6e 20 70 61 72 |nterval.| In par|
|00002ce0| 74 69 63 75 6c 61 72 2c | 20 77 69 74 68 20 74 68 |ticular,| with th|
|00002cf0| 65 20 41 70 70 6c 65 20 | 38 2d 32 34 20 62 6f 61 |e Apple |8-24 boa|
|00002d00| 72 64 20 6f 6e 20 61 20 | 49 49 66 78 0d 72 75 6e |rd on a |IIfx.run|
|00002d10| 6e 69 6e 67 20 69 6e 20 | 74 68 65 20 38 30 30 20 |ning in |the 800 |
|00002d20| 62 79 20 36 30 30 20 6d | 6f 64 65 20 61 74 20 37 |by 600 m|ode at 7|
|00002d30| 35 20 48 7a 2c 20 69 74 | 20 69 73 20 61 20 6c 69 |5 Hz, it| is a li|
|00002d40| 74 74 6c 65 20 74 6f 6f | 20 73 6c 6f 77 2e 20 20 |ttle too| slow. |
|00002d50| 54 68 69 73 20 63 61 75 | 73 65 73 20 61 0d 76 69 |This cau|ses a.vi|
|00002d60| 73 69 62 6c 65 20 67 6c | 69 74 63 68 20 61 74 20 |sible gl|itch at |
|00002d70| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 73 |the top |of the s|
|00002d80| 63 72 65 65 6e 2e 20 20 | 57 68 65 74 68 65 72 20 |creen. |Whether |
|00002d90| 69 74 20 69 73 20 66 61 | 73 74 20 65 6e 6f 75 67 |it is fa|st enoug|
|00002da0| 68 20 69 73 20 70 72 6f | 62 61 62 6c 79 0d 76 65 |h is pro|bably.ve|
|00002db0| 72 79 20 68 61 72 64 77 | 61 72 65 2d 63 6f 6e 66 |ry hardw|are-conf|
|00002dc0| 69 67 75 72 61 74 69 6f | 6e 20 64 65 70 65 6e 64 |iguratio|n depend|
|00002dd0| 65 6e 74 2c 20 62 75 74 | 20 69 74 20 6d 69 67 68 |ent, but| it migh|
|00002de0| 74 20 62 65 20 77 6f 72 | 74 68 20 65 6d 70 68 61 |t be wor|th empha|
|00002df0| 73 69 7a 69 6e 67 20 69 | 6e 20 74 68 65 0d 64 6f |sizing i|n the.do|
|00002e00| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 74 68 61 74 |cumentat|ion that|
|00002e10| 20 75 73 65 20 69 73 20 | 63 61 76 65 61 74 20 65 | use is |caveat e|
|00002e20| 6d 70 74 6f 72 2e 20 20 | 59 6f 75 20 67 69 76 65 |mptor. |You give|
|00002e30| 20 3c 20 32 20 6d 73 20 | 61 73 20 74 68 65 20 77 | < 2 ms |as the w|
|00002e40| 72 69 74 65 20 74 69 6d | 65 2c 0d 77 68 69 63 68 |rite tim|e,.which|
|00002e50| 20 69 73 20 72 6f 75 67 | 68 6c 79 20 63 6f 72 72 | is roug|hly corr|
|00002e60| 65 63 74 2c 20 62 75 74 | 20 6e 6f 74 20 61 6c 77 |ect, but| not alw|
|00002e70| 61 79 73 20 66 61 73 74 | 20 65 6e 6f 75 67 68 2e |ays fast| enough.|
|00002e80| 20 49 20 6d 61 79 20 65 | 6e 64 20 75 70 20 77 72 | I may e|nd up wr|
|00002e90| 69 74 69 6e 67 20 61 6e | 0d 61 73 73 65 6d 62 6c |iting an|.assembl|
|00002ea0| 65 72 20 76 65 72 73 69 | 6f 6e 20 74 6f 20 73 65 |er versi|on to se|
|00002eb0| 65 20 69 66 20 49 20 63 | 61 6e 20 70 75 73 68 20 |e if I c|an push |
|00002ec0| 69 74 20 62 79 20 32 35 | 25 2c 20 77 68 69 63 68 |it by 25|%, which|
|00002ed0| 20 69 73 20 61 62 6f 75 | 74 20 77 68 61 74 20 49 | is abou|t what I|
|00002ee0| 20 6e 65 65 64 2e 0d 5b | 48 6f 77 65 76 65 72 2c | need..[|However,|
|00002ef0| 20 61 73 73 65 6d 62 6c | 79 20 63 6f 64 65 20 77 | assembl|y code w|
|00002f00| 6f 6e 27 74 20 62 65 20 | 63 6f 6d 70 61 74 69 62 |on't be |compatib|
|00002f10| 6c 65 20 77 69 74 68 20 | 74 68 65 20 50 6f 77 65 |le with |the Powe|
|00002f20| 72 20 50 43 2e 2d 64 67 | 70 5d 0d 0d 49 4d 50 52 |r PC.-dg|p]..IMPR|
|00002f30| 4f 56 45 4d 45 4e 54 53 | 3a 0d 49 74 20 69 73 20 |OVEMENTS|:.It is |
|00002f40| 68 6f 70 65 64 20 74 68 | 61 74 20 6f 74 68 65 72 |hoped th|at other|
|00002f50| 73 20 77 69 6c 6c 20 61 | 64 64 20 74 6f 20 74 68 |s will a|dd to th|
|00002f60| 65 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |e functi|onality |
|00002f70| 6f 66 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |of this |routine.|
|00002f80| 20 50 6c 65 61 73 65 0d | 73 68 61 72 65 20 79 6f | Please.|share yo|
|00002f90| 75 72 20 65 6e 68 61 6e | 63 65 6d 65 6e 74 73 20 |ur enhan|cements |
|00002fa0| 77 69 74 68 20 6f 74 68 | 65 72 73 20 62 79 20 73 |with oth|ers by s|
|00002fb0| 65 6e 64 69 6e 67 20 74 | 68 65 6d 20 74 6f 20 64 |ending t|hem to d|
|00002fc0| 65 6e 69 73 40 78 70 2e | 70 73 79 63 68 2e 6e 79 |enis@xp.|psych.ny|
|00002fd0| 75 2e 65 64 75 0d 66 6f | 72 20 69 6e 63 6c 75 73 |u.edu.fo|r inclus|
|00002fe0| 69 6f 6e 20 69 6e 20 74 | 68 65 20 56 69 64 65 6f |ion in t|he Video|
|00002ff0| 54 6f 6f 6c 62 6f 78 2e | 0d 0d 54 68 6f 73 65 20 |Toolbox.|..Those |
|00003000| 77 69 73 68 69 6e 67 20 | 74 6f 20 73 75 70 70 6f |wishing |to suppo|
|00003010| 72 74 20 6e 65 77 20 76 | 69 64 65 6f 20 64 65 76 |rt new v|ideo dev|
|00003020| 69 63 65 73 20 73 68 6f | 75 6c 64 20 62 65 67 69 |ices sho|uld begi|
|00003030| 6e 20 62 79 20 62 75 79 | 69 6e 67 20 61 6e 64 20 |n by buy|ing and |
|00003040| 72 65 61 64 69 6e 67 0d | 41 70 70 6c 65 d5 73 20 |reading.|Apple.s |
|00003050| 44 65 73 69 67 6e 69 6e | 67 20 43 61 72 64 73 20 |Designin|g Cards |
|00003060| 61 6e 64 20 44 72 69 76 | 65 72 73 2c 20 33 72 64 |and Driv|ers, 3rd|
|00003070| 20 45 64 2e 2c 20 41 64 | 64 69 73 6f 6e 2d 57 65 | Ed., Ad|dison-We|
|00003080| 73 6c 65 79 2c 20 61 6e | 64 20 74 68 65 6e 20 75 |sley, an|d then u|
|00003090| 73 65 20 74 68 65 0d 56 | 69 64 65 6f 54 6f 6f 6c |se the.V|ideoTool|
|000030a0| 62 6f 78 20 75 74 69 6c | 69 74 79 20 47 65 74 56 |box util|ity GetV|
|000030b0| 69 64 65 6f 44 72 69 76 | 65 72 73 20 74 6f 20 63 |ideoDriv|ers to c|
|000030c0| 6f 70 79 20 61 6c 6c 20 | 79 6f 75 72 20 64 72 69 |opy all |your dri|
|000030d0| 76 65 72 73 20 69 6e 74 | 6f 20 72 65 73 6f 75 72 |vers int|o resour|
|000030e0| 63 65 0d 66 69 6c 65 73 | 2c 20 61 6e 64 20 75 73 |ce.files|, and us|
|000030f0| 65 20 52 65 73 45 64 69 | 74 20 77 69 74 68 20 43 |e ResEdi|t with C|
|00003100| 4f 44 45 20 65 64 69 74 | 6f 72 20 74 6f 20 70 65 |ODE edit|or to pe|
|00003110| 72 75 73 65 20 74 68 65 | 6d 2e 20 54 68 65 20 52 |ruse the|m. The R|
|00003120| 65 73 45 64 69 74 20 43 | 4f 44 45 20 65 64 69 74 |esEdit C|ODE edit|
|00003130| 6f 72 0d 69 73 20 61 20 | 70 75 62 6c 69 63 20 64 |or.is a |public d|
|00003140| 6f 6d 61 69 6e 20 66 69 | 6c 65 20 64 69 73 74 72 |omain fi|le distr|
|00003150| 69 62 75 74 65 64 20 62 | 79 3a 0d 49 72 61 20 4c |ibuted b|y:.Ira L|
|00003160| 2e 20 52 75 62 65 6e 0d | 41 70 70 6c 65 20 43 6f |. Ruben.|Apple Co|
|00003170| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 0d 32 30 35 |mputer, |Inc..205|
|00003180| 32 35 20 4d 61 72 69 61 | 6e 69 20 41 76 65 2e 2c |25 Maria|ni Ave.,|
|00003190| 20 4d 53 3a 20 33 37 2d | 41 0d 43 75 70 65 72 74 | MS: 37-|A.Cupert|
|000031a0| 69 6e 6f 2c 20 43 61 2e | 20 39 35 30 31 34 0d 49 |ino, Ca.| 95014.I|
|000031b0| 72 61 40 41 70 70 6c 65 | 2e 43 6f 6d 0d 66 74 70 |ra@Apple|.Com.ftp|
|000031c0| 3a 2f 2f 66 74 70 2e 61 | 70 70 6c 65 2e 63 6f 6d |://ftp.a|pple.com|
|000031d0| 2f 64 74 73 2f 6d 61 63 | 2f 74 6f 6f 6c 73 2f 72 |/dts/mac|/tools/r|
|000031e0| 65 73 65 64 69 74 2f 72 | 65 73 65 64 69 74 2d 32 |esedit/r|esedit-2|
|000031f0| 2d 31 2d 63 6f 64 65 2d | 65 64 69 74 6f 72 2e 2e |-1-code-|editor..|
|00003200| 2e 0d 0d 42 79 20 74 68 | 65 20 77 61 79 2c 20 61 |...By th|e way, a|
|00003210| 73 73 65 6d 62 6c 79 20 | 63 6f 64 65 20 69 73 20 |ssembly |code is |
|00003220| 68 61 72 64 20 74 6f 20 | 77 72 69 74 65 2c 20 72 |hard to |write, r|
|00003230| 65 61 64 2c 20 61 6e 64 | 20 6d 61 69 6e 74 61 69 |ead, and| maintai|
|00003240| 6e 2c 0d 61 6e 64 20 74 | 68 65 20 73 70 65 65 64 |n,.and t|he speed|
|00003250| 20 61 64 76 61 6e 74 61 | 67 65 20 69 73 20 6e 65 | advanta|ge is ne|
|00003260| 67 6c 69 67 69 62 6c 65 | 2c 20 61 62 6f 75 74 20 |gligible|, about |
|00003270| 31 30 25 2e 20 49 20 73 | 75 67 67 65 73 74 20 74 |10%. I s|uggest t|
|00003280| 68 61 74 0d 61 6c 6c 20 | 6e 65 77 20 63 6f 64 65 |hat.all |new code|
|00003290| 20 62 65 20 77 72 69 74 | 74 65 6e 20 69 6e 20 43 | be writ|ten in C|
|000032a0| 2e 0d 0d 49 74 20 69 73 | 20 6c 6f 67 69 63 61 6c |...It is| logical|
|000032b0| 20 74 68 61 74 20 77 65 | 20 69 64 65 6e 74 69 66 | that we| identif|
|000032c0| 79 20 74 68 65 20 76 69 | 64 65 6f 20 63 61 72 64 |y the vi|deo card|
|000032d0| 20 62 79 20 74 68 65 20 | 63 61 72 64 20 6e 61 6d | by the |card nam|
|000032e0| 65 2c 0d 47 44 43 61 72 | 64 4e 61 6d 65 28 64 72 |e,.GDCar|dName(dr|
|000032f0| 69 76 65 72 29 2c 20 62 | 75 74 20 69 6e 20 66 61 |iver), b|ut in fa|
|00003300| 63 74 20 67 65 74 74 69 | 6e 67 20 74 68 65 20 63 |ct getti|ng the c|
|00003310| 61 72 64 20 6e 61 6d 65 | 20 69 73 20 76 65 72 79 |ard name| is very|
|00003320| 20 73 6c 6f 77 20 28 31 | 2e 35 20 6d 73 29 0d 77 | slow (1|.5 ms).w|
|00003330| 68 65 72 65 61 73 20 67 | 65 74 74 69 6e 67 20 74 |hereas g|etting t|
|00003340| 68 65 20 64 72 69 76 65 | 72 20 6e 61 6d 65 20 69 |he drive|r name i|
|00003350| 73 20 66 61 73 74 2c 20 | 47 44 4e 61 6d 65 28 64 |s fast, |GDName(d|
|00003360| 72 69 76 65 72 29 2c 20 | 61 6e 64 20 77 6f 75 6c |river), |and woul|
|00003370| 64 20 62 65 0d 73 75 66 | 66 69 63 69 65 6e 74 6c |d be.suf|ficientl|
|00003380| 79 20 75 6e 69 71 75 65 | 20 66 6f 72 20 6f 75 72 |y unique| for our|
|00003390| 20 70 75 72 70 6f 73 65 | 73 2e 20 28 45 2e 67 2e | purpose|s. (E.g.|
|000033a0| 20 74 68 65 20 54 6f 62 | 79 20 61 6e 64 20 54 46 | the Tob|y and TF|
|000033b0| 42 20 76 69 64 65 6f 20 | 63 61 72 64 73 20 68 61 |B video |cards ha|
|000033c0| 76 65 0d 74 68 65 20 73 | 61 6d 65 20 64 72 69 76 |ve.the s|ame driv|
|000033d0| 65 72 2c 20 61 6e 64 20 | 6f 75 72 20 63 6f 64 65 |er, and |our code|
|000033e0| 20 77 6f 72 6b 73 20 66 | 6f 72 20 62 6f 74 68 20 | works f|or both |
|000033f0| 63 61 72 64 73 2e 29 20 | 0d 0d 4b 4e 4f 57 4e 20 |cards.) |..KNOWN |
|00003400| 42 55 47 53 3a 0d 48 61 | 73 20 6e 6f 74 20 62 65 |BUGS:.Ha|s not be|
|00003410| 65 6e 20 74 65 73 74 65 | 64 20 6f 6e 20 61 6c 6c |en teste|d on all|
|00003420| 20 74 68 65 20 76 69 64 | 65 6f 20 64 65 76 69 63 | the vid|eo devic|
|00003430| 65 73 20 74 68 61 74 20 | 61 72 65 20 73 75 70 70 |es that |are supp|
|00003440| 6f 73 65 64 20 74 6f 20 | 62 65 20 73 75 70 70 6f |osed to |be suppo|
|00003450| 72 74 65 64 2e 0d 50 6c | 65 61 73 65 20 72 75 6e |rted..Pl|ease run|
|00003460| 20 74 68 65 20 64 65 6d | 6f 20 54 69 6d 65 56 69 | the dem|o TimeVi|
|00003470| 64 65 6f 2c 20 61 6e 64 | 20 73 65 6e 64 20 74 68 |deo, and| send th|
|00003480| 65 20 72 65 73 75 6c 74 | 73 20 66 69 6c 65 20 74 |e result|s file t|
|00003490| 6f 20 64 65 6e 69 73 40 | 78 70 2e 70 73 79 63 68 |o denis@|xp.psych|
|000034a0| 2e 6e 79 75 2e 65 64 75 | 0d 0d 44 6f 65 73 20 6e |.nyu.edu|..Does n|
|000034b0| 6f 74 20 77 6f 72 6b 20 | 77 69 74 68 20 74 68 65 |ot work |with the|
|000034c0| 20 52 61 73 74 65 72 4f | 70 73 20 50 72 6f 43 6f | RasterO|ps ProCo|
|000034d0| 6c 6f 72 20 33 32 2e 20 | 48 6f 70 65 66 75 6c 6c |lor 32. |Hopefull|
|000034e0| 79 20 74 68 69 73 20 77 | 69 6c 6c 20 62 65 20 66 |y this w|ill be f|
|000034f0| 69 78 65 64 20 73 6f 6f | 6e 2e 0d 0d 54 68 65 20 |ixed soo|n...The |
|00003500| 51 75 61 64 72 61 20 63 | 6f 64 65 20 72 65 71 75 |Quadra c|ode requ|
|00003510| 69 72 65 73 20 74 68 61 | 74 20 73 74 61 72 74 3d |ires tha|t start=|
|00003520| 3d 30 2e 20 28 41 70 70 | 61 72 65 6e 74 6c 79 20 |=0. (App|arently |
|00003530| 74 68 65 20 73 61 6d 65 | 20 70 72 6f 62 6c 65 6d |the same| problem|
|00003540| 20 6f 63 63 75 72 73 20 | 77 68 65 6e 0d 72 75 6e | occurs |when.run|
|00003550| 6e 69 6e 67 20 74 68 65 | 20 38 a5 32 34 20 63 61 |ning the| 8.24 ca|
|00003560| 72 64 20 6f 6e 20 61 20 | 51 75 61 64 72 61 20 38 |rd on a |Quadra 8|
|00003570| 34 30 41 56 2e 29 20 54 | 68 69 73 20 63 6f 75 6c |40AV.) T|his coul|
|00003580| 64 20 70 72 6f 62 61 62 | 6c 79 20 62 65 20 66 69 |d probab|ly be fi|
|00003590| 67 75 72 65 64 20 6f 75 | 74 20 61 6e 64 0d 66 69 |gured ou|t and.fi|
|000035a0| 78 65 64 20 70 72 65 74 | 74 79 20 65 61 73 69 6c |xed pret|ty easil|
|000035b0| 79 20 69 66 20 73 6f 6d | 65 6f 6e 65 20 74 6f 6f |y if som|eone too|
|000035c0| 6b 20 74 68 65 20 74 69 | 6d 65 20 74 6f 20 64 6f |k the ti|me to do|
|000035d0| 20 73 6f 2e 0d 0d 49 20 | 72 65 63 6f 6d 6d 65 6e | so...I |recommen|
|000035e0| 64 20 75 73 69 6e 67 20 | 74 68 65 20 73 74 61 6e |d using |the stan|
|000035f0| 64 61 72 64 20 64 72 69 | 76 65 72 73 20 28 69 2e |dard dri|vers (i.|
|00003600| 65 2e 20 47 44 53 65 74 | 45 6e 74 72 69 65 73 2f |e. GDSet|Entries/|
|00003610| 47 44 44 69 72 65 63 74 | 53 65 74 45 6e 74 72 69 |GDDirect|SetEntri|
|00003620| 65 73 29 0d 69 6e 73 74 | 65 61 64 20 6f 66 20 53 |es).inst|ead of S|
|00003630| 65 74 45 6e 74 72 69 65 | 73 51 75 69 63 6b 6c 79 |etEntrie|sQuickly|
|00003640| 20 66 6f 72 20 74 68 65 | 20 54 6f 62 79 20 61 6e | for the| Toby an|
|00003650| 64 20 48 69 67 68 20 52 | 65 73 6f 6c 75 74 69 6f |d High R|esolutio|
|00003660| 6e 20 76 69 64 65 6f 20 | 63 61 72 64 73 20 61 6e |n video |cards an|
|00003670| 64 0d 74 68 65 20 4d 61 | 63 20 49 49 63 69 20 62 |d.the Ma|c IIci b|
|00003680| 75 69 6c 74 2d 69 6e 20 | 76 69 64 65 6f 2e 20 54 |uilt-in |video. T|
|00003690| 68 6f 73 65 20 73 74 61 | 6e 64 61 72 64 20 64 72 |hose sta|ndard dr|
|000036a0| 69 76 65 72 73 20 77 6f | 72 6b 20 66 69 6e 65 2c |ivers wo|rk fine,|
|000036b0| 20 77 68 65 72 65 61 73 | 20 66 6f 72 20 74 68 6f | whereas| for tho|
|000036c0| 73 65 0d 64 65 76 69 63 | 65 73 20 53 65 74 45 6e |se.devic|es SetEn|
|000036d0| 74 72 69 65 73 51 75 69 | 63 6b 6c 79 20 70 72 6f |triesQui|ckly pro|
|000036e0| 64 75 63 65 73 20 76 69 | 73 69 62 6c 65 20 64 79 |duces vi|sible dy|
|000036f0| 6e 61 6d 69 63 20 62 6c | 61 63 6b 20 73 70 65 63 |namic bl|ack spec|
|00003700| 6b 73 20 61 73 20 69 74 | 20 61 63 63 65 73 73 65 |ks as it| accesse|
|00003710| 73 0d 74 68 65 20 63 6c | 75 74 2e 0d 0d 4e 6f 6e |s.the cl|ut...Non|
|00003720| 65 20 6f 66 20 74 68 65 | 73 65 20 72 6f 75 74 69 |e of the|se routi|
|00003730| 6e 65 73 20 77 61 69 74 | 20 66 6f 72 20 74 68 65 |nes wait| for the|
|00003740| 20 76 65 72 74 69 63 61 | 6c 20 62 6c 61 6e 6b 69 | vertica|l blanki|
|00003750| 6e 67 20 69 6e 74 65 72 | 76 61 6c 20 62 65 66 6f |ng inter|val befo|
|00003760| 72 65 20 6c 6f 61 64 69 | 6e 67 0d 74 68 65 20 63 |re loadi|ng.the c|
|00003770| 6c 75 74 2e 20 4f 6e 20 | 6f 6c 64 65 72 20 76 69 |lut. On |older vi|
|00003780| 64 65 6f 20 64 65 76 69 | 63 65 73 2d 2d 54 6f 62 |deo devi|ces--Tob|
|00003790| 79 2c 20 48 69 52 65 73 | 2c 20 4d 61 63 20 49 49 |y, HiRes|, Mac II|
|000037a0| 63 69 2d 2d 74 68 69 73 | 20 72 65 73 75 6c 74 73 |ci--this| results|
|000037b0| 20 69 6e 20 76 69 73 69 | 62 6c 65 0d 64 79 6e 61 | in visi|ble.dyna|
|000037c0| 6d 69 63 20 62 6c 61 63 | 6b 20 73 70 65 63 6b 73 |mic blac|k specks|
|000037d0| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2e 20 | on the |screen. |
|000037e0| 49 20 28 64 67 70 29 20 | 63 6f 6e 73 69 64 65 72 |I (dgp) |consider|
|000037f0| 20 74 68 69 73 20 61 20 | 62 75 67 2c 20 62 75 74 | this a |bug, but|
|00003800| 2c 20 66 6f 72 20 6d 6f | 73 74 0d 6f 66 20 74 68 |, for mo|st.of th|
|00003810| 65 73 65 20 64 65 76 69 | 63 65 73 20 49 20 64 6f |ese devi|ces I do|
|00003820| 6e d5 74 20 6b 6e 6f 77 | 20 68 6f 77 20 74 6f 20 |n.t know| how to |
|00003830| 77 61 69 74 20 66 6f 72 | 20 74 68 65 20 65 6e 64 |wait for| the end|
|00003840| 20 6f 66 20 66 72 61 6d | 65 2c 20 73 68 6f 72 74 | of fram|e, short|
|00003850| 20 6f 66 20 73 65 74 74 | 69 6e 67 0d 75 70 20 61 | of sett|ing.up a|
|00003860| 6e 20 69 6e 74 65 72 72 | 75 70 74 2e 20 28 4a 75 |n interr|upt. (Ju|
|00003870| 73 74 20 61 62 6f 75 74 | 20 65 76 65 72 79 20 76 |st about| every v|
|00003880| 69 64 65 6f 20 63 61 72 | 64 20 68 61 73 20 61 20 |ideo car|d has a |
|00003890| 62 69 74 20 74 68 61 74 | 20 6f 6e 65 20 63 6f 75 |bit that| one cou|
|000038a0| 6c 64 20 6d 6f 6e 69 74 | 6f 72 2c 0d 62 75 74 20 |ld monit|or,.but |
|000038b0| 69 74 73 20 61 64 64 72 | 65 73 73 20 69 73 20 75 |its addr|ess is u|
|000038c0| 73 75 61 6c 6c 79 20 75 | 6e 64 6f 63 75 6d 65 6e |sually u|ndocumen|
|000038d0| 74 65 64 2e 29 20 4e 65 | 77 65 72 20 64 65 76 69 |ted.) Ne|wer devi|
|000038e0| 63 65 73 20 73 65 65 6d | 20 74 6f 20 62 65 20 6f |ces seem| to be o|
|000038f0| 6b 2c 20 62 65 63 61 75 | 73 65 20 6f 66 0d 64 75 |k, becau|se of.du|
|00003900| 61 6c 2d 70 6f 72 74 65 | 64 20 52 41 4d 44 41 43 |al-porte|d RAMDAC|
|00003910| 20 6d 65 6d 6f 72 79 2e | 20 43 68 65 63 6b 20 74 | memory.| Check t|
|00003920| 68 69 73 20 6f 75 74 20 | 6f 6e 20 79 6f 75 72 20 |his out |on your |
|00003930| 64 65 76 69 63 65 73 20 | 62 79 20 72 75 6e 6e 69 |devices |by runni|
|00003940| 6e 67 20 54 69 6d 65 56 | 69 64 65 6f 2e 0d 0d 51 |ng TimeV|ideo...Q|
|00003950| 55 41 44 52 41 20 36 36 | 30 41 56 20 26 20 38 34 |UADRA 66|0AV & 84|
|00003960| 30 41 56 0d 42 65 6e 20 | 53 69 6e 67 65 72 2c 20 |0AV.Ben |Singer, |
|00003970| 62 65 6e 73 40 73 77 69 | 66 74 2e 63 76 73 2e 72 |bens@swi|ft.cvs.r|
|00003980| 6f 63 68 65 73 74 65 72 | 2e 65 64 75 2c 20 77 72 |ochester|.edu, wr|
|00003990| 69 74 65 73 2c 0d 22 49 | 20 74 68 6f 75 67 68 74 |ites,."I| thought|
|000039a0| 20 74 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | this in|formatio|
|000039b0| 6e 20 77 6f 75 6c 64 20 | 70 72 6f 76 65 20 75 73 |n would |prove us|
|000039c0| 65 66 75 6c 20 74 6f 20 | 61 6e 79 6f 6e 65 20 75 |eful to |anyone u|
|000039d0| 73 69 6e 67 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f |sing Vid|eoToolbo|
|000039e0| 78 20 6f 6e 20 61 0d 36 | 36 30 41 56 20 6f 72 20 |x on a.6|60AV or |
|000039f0| 38 34 30 41 56 20 28 74 | 68 65 20 6d 61 63 68 69 |840AV (t|he machi|
|00003a00| 6e 65 73 27 20 76 69 64 | 65 6f 20 64 72 69 76 65 |nes' vid|eo drive|
|00003a10| 72 73 20 61 72 65 20 69 | 64 65 6e 74 69 63 61 6c |rs are i|dentical|
|00003a20| 29 2e 20 49 74 27 73 20 | 70 6f 73 73 69 62 6c 65 |). It's |possible|
|00003a30| 20 74 6f 0d 6c 6f 61 64 | 20 74 68 65 20 63 6c 75 | to.load| the clu|
|00003a40| 74 20 6f 6e 20 36 36 30 | 2f 38 34 30 41 56 27 73 |t on 660|/840AV's|
|00003a50| 20 75 73 69 6e 67 20 74 | 68 65 20 66 6f 6c 6c 6f | using t|he follo|
|00003a60| 77 69 6e 67 20 63 6f 64 | 65 20 69 6e 66 6f 72 6d |wing cod|e inform|
|00003a70| 61 74 69 6f 6e 3a 0d 0d | 49 4e 49 54 49 41 4c 49 |ation:..|INITIALI|
|00003a80| 5a 41 54 49 4f 4e 20 49 | 4e 46 4f 3a 20 0d 0d 73 |ZATION I|NFO: ..s|
|00003a90| 6c 6f 74 20 69 64 27 73 | 20 66 6f 72 20 73 6c 6f |lot id's| for slo|
|00003aa0| 74 20 30 20 28 69 6e 74 | 65 72 6e 61 6c 20 76 69 |t 0 (int|ernal vi|
|00003ab0| 64 65 6f 29 3a 0d 0d 71 | 75 61 64 72 61 36 36 30 |deo):..q|uadra660|
|00003ac0| 20 3d 20 30 78 35 30 3b | 20 2f 2f 20 71 75 61 64 | = 0x50;| // quad|
|00003ad0| 72 61 20 36 36 30 41 56 | 20 69 6e 74 65 72 6e 61 |ra 660AV| interna|
|00003ae0| 6c 20 76 69 64 65 6f 0d | 71 75 61 64 72 61 38 34 |l video.|quadra84|
|00003af0| 30 20 3d 20 30 78 33 44 | 3b 20 2f 2f 20 71 75 61 |0 = 0x3D|; // qua|
|00003b00| 64 72 61 20 38 34 30 41 | 56 20 69 6e 74 65 72 6e |dra 840A|V intern|
|00003b10| 61 6c 20 76 69 64 65 6f | 0d 0d 64 72 69 76 65 72 |al video|..driver|
|00003b20| 20 6e 61 6d 65 20 69 6e | 20 65 61 63 68 20 63 61 | name in| each ca|
|00003b30| 73 65 20 69 73 20 22 2e | 44 69 73 70 6c 61 79 5f |se is ".|Display_|
|00003b40| 56 69 64 65 6f 5f 41 70 | 70 6c 65 5f 43 69 76 69 |Video_Ap|ple_Civi|
|00003b50| 63 22 0d 63 61 72 64 20 | 6e 61 6d 65 20 66 6f 72 |c".card |name for|
|00003b60| 20 36 36 30 41 56 20 69 | 73 20 22 4d 61 63 69 6e | 660AV i|s "Macin|
|00003b70| 74 6f 73 68 20 33 42 22 | 0d 63 61 72 64 20 6e 61 |tosh 3B"|.card na|
|00003b80| 6d 65 20 66 6f 72 20 38 | 34 30 41 56 20 69 73 20 |me for 8|40AV is |
|00003b90| 22 4d 61 63 69 6e 74 6f | 73 68 20 33 41 22 0d 0d |"Macinto|sh 3A"..|
|00003ba0| 43 41 52 44 42 41 53 45 | 20 49 4e 46 4f 3a 0d 0d |CARDBASE| INFO:..|
|00003bb0| 63 61 73 65 20 71 75 61 | 64 72 61 36 36 30 3a 0d |case qua|dra660:.|
|00003bc0| 63 61 73 65 20 71 75 61 | 64 72 61 38 34 30 3a 0d |case qua|dra840:.|
|00003bd0| 20 20 20 7b 09 0d 09 61 | 73 6d 20 7b 0d 09 09 6d | {...a|sm {...m|
|00003be0| 6f 76 65 2e 6c 20 30 78 | 44 44 38 2c 61 30 09 09 |ove.l 0x|DD8,a0..|
|00003bf0| 2f 2f 20 69 6e 74 65 72 | 6e 61 6c 20 76 69 64 65 |// inter|nal vide|
|00003c00| 6f 20 30 34 30 20 41 56 | 27 73 0d 09 09 61 64 64 |o 040 AV|'s...add|
|00003c10| 61 2e 6c 20 28 61 30 29 | 2c 61 30 0d 09 09 6d 6f |a.l (a0)|,a0...mo|
|00003c20| 76 65 2e 6c 20 31 36 34 | 28 61 30 29 2c 61 31 0d |ve.l 164|(a0),a1.|
|00003c30| 09 09 6d 6f 76 65 2e 6c | 20 61 31 2c 63 61 72 64 |..move.l| a1,card|
|00003c40| 42 61 73 65 0d 09 7d 0d | 09 62 72 65 61 6b 3b 0d |Base..}.|.break;.|
|00003c50| 20 20 20 7d 0d 0d 4c 4f | 41 44 43 4c 55 54 20 49 | }..LO|ADCLUT I|
|00003c60| 4e 46 4f 3a 0d 0d 63 61 | 73 65 20 71 75 61 64 72 |NFO:..ca|se quadr|
|00003c70| 61 36 36 30 3a 0d 63 61 | 73 65 20 71 75 61 64 72 |a660:.ca|se quadr|
|00003c80| 61 38 34 30 3a 0d 20 20 | 20 7b 0d 09 61 73 6d 20 |a840:. | {..asm |
|00003c90| 7b 09 2f 2f 20 6e 6f 20 | 5f 53 77 61 70 4d 4d 55 |{.// no |_SwapMMU|
|00003ca0| 4d 6f 64 65 3b 20 30 34 | 30 20 41 56 27 73 20 61 |Mode; 04|0 AV's a|
|00003cb0| 6c 77 61 79 73 20 69 6e | 20 33 32 2d 62 69 74 20 |lways in| 32-bit |
|00003cc0| 6d 6f 64 65 0d 09 09 6d | 6f 76 65 2e 6c 20 63 61 |mode...m|ove.l ca|
|00003cd0| 72 64 42 61 73 65 2c 61 | 31 20 20 0d 09 09 6c 65 |rdBase,a|1 ...le|
|00003ce0| 61 20 30 78 31 30 28 61 | 31 29 2c 61 31 09 2f 2f |a 0x10(a|1),a1.//|
|00003cf0| 20 6f 66 66 73 65 74 73 | 20 30 78 31 30 2c 30 78 | offsets| 0x10,0x|
|00003d00| 31 31 30 2c 30 78 32 31 | 30 2c 30 78 33 31 30 20 |110,0x21|0,0x310 |
|00003d10| 77 6f 72 6b 0d 09 09 63 | 6c 72 2e 6c 20 2d 31 36 |work...c|lr.l -16|
|00003d20| 28 61 31 29 0d 09 09 6d | 6f 76 65 20 73 72 2c 2d |(a1)...m|ove sr,-|
|00003d30| 28 61 37 29 0d 09 09 6f | 72 69 20 23 30 78 37 30 |(a7)...o|ri #0x70|
|00003d40| 30 2c 73 72 09 2f 2f 20 | 64 69 73 61 62 6c 65 20 |0,sr.// |disable |
|00003d50| 69 6e 74 65 72 72 75 70 | 74 73 0d 09 09 73 75 62 |interrup|ts...sub|
|00003d60| 71 2e 6c 20 23 31 2c 63 | 6f 75 6e 74 20 2f 2f 20 |q.l #1,c|ount // |
|00003d70| 6d 61 79 20 77 61 6e 74 | 20 74 6f 20 74 61 6b 65 |may want| to take|
|00003d80| 20 74 68 69 73 20 6f 75 | 74 20 66 6f 72 20 56 69 | this ou|t for Vi|
|00003d90| 64 54 42 0d 09 09 63 6c | 72 2e 6c 20 64 31 0d 09 |dTB...cl|r.l d1..|
|00003da0| 40 31 09 6d 6f 76 65 2e | 77 20 28 72 65 64 29 2b |@1.move.|w (red)+|
|00003db0| 2c 64 31 0d 09 09 6d 6f | 76 65 2e 62 20 64 31 2c |,d1...mo|ve.b d1,|
|00003dc0| 28 61 31 29 0d 09 09 6d | 6f 76 65 2e 77 20 28 67 |(a1)...m|ove.w (g|
|00003dd0| 72 65 65 6e 29 2b 2c 64 | 31 0d 09 09 6d 6f 76 65 |reen)+,d|1...move|
|00003de0| 2e 62 20 64 31 2c 28 61 | 31 29 0d 09 09 6d 6f 76 |.b d1,(a|1)...mov|
|00003df0| 65 2e 77 20 28 62 6c 75 | 65 29 2b 2c 64 31 0d 09 |e.w (blu|e)+,d1..|
|00003e00| 09 6d 6f 76 65 2e 62 20 | 64 31 2c 28 61 31 29 0d |.move.b |d1,(a1).|
|00003e10| 09 09 63 6c 72 2e 62 20 | 28 61 31 29 0d 09 09 64 |..clr.b |(a1)...d|
|00003e20| 62 66 20 63 6f 75 6e 74 | 2c 40 31 0d 09 09 6d 6f |bf count|,@1...mo|
|00003e30| 76 65 20 28 61 37 29 2b | 2c 73 72 09 2f 2f 20 65 |ve (a7)+|,sr.// e|
|00003e40| 6e 61 62 6c 65 20 69 6e | 74 65 72 72 75 70 74 73 |nable in|terrupts|
|00003e50| 0d 09 7d 0d 20 20 20 7d | 0d 20 20 20 62 72 65 61 |..}. }|. brea|
|00003e60| 6b 3b 0d 0d 49 27 76 65 | 20 74 65 73 74 65 64 20 |k;..I've| tested |
|00003e70| 74 68 69 73 20 6f 6e 20 | 62 6f 74 68 20 74 68 65 |this on |both the|
|00003e80| 20 36 36 30 41 56 20 61 | 6e 64 20 38 34 30 41 56 | 660AV a|nd 840AV|
|00003e90| 2c 20 62 75 74 20 6f 6e | 6c 79 20 69 6e 20 38 2d |, but on|ly in 8-|
|00003ea0| 62 69 74 20 28 22 32 35 | 36 0d 63 6f 6c 6f 72 73 |bit ("25|6.colors|
|00003eb0| 22 3b 63 6f 75 6e 74 3d | 32 35 36 29 20 6d 6f 64 |";count=|256) mod|
|00003ec0| 65 2e 20 41 73 20 77 69 | 74 68 20 6f 74 68 65 72 |e. As wi|th other|
|00003ed0| 20 71 75 61 64 72 61 20 | 69 6e 74 65 72 6e 61 6c | quadra |internal|
|00003ee0| 20 76 69 64 65 6f 20 63 | 6f 64 65 2c 20 74 68 69 | video c|ode, thi|
|00003ef0| 73 20 64 6f 65 73 6e 27 | 74 0d 69 6e 63 6f 72 70 |s doesn'|t.incorp|
|00003f00| 6f 72 61 74 65 20 74 68 | 65 20 22 73 74 61 72 74 |orate th|e "start|
|00003f10| 22 20 70 61 72 61 6d 65 | 74 65 72 2e 20 54 68 61 |" parame|ter. Tha|
|00003f20| 6e 6b 73 20 74 6f 20 50 | 65 74 65 72 20 4c 65 6e |nks to P|eter Len|
|00003f30| 6e 69 65 2e 20 54 68 61 | 6e 6b 73 20 61 6c 73 6f |nie. Tha|nks also|
|00003f40| 20 74 6f 20 79 6f 75 0d | 66 6f 72 20 47 72 61 62 | to you.|for Grab|
|00003f50| 44 72 69 76 65 72 20 61 | 6e 64 20 74 68 65 20 74 |Driver a|nd the t|
|00003f60| 69 70 20 6f 6e 20 75 73 | 69 6e 67 20 74 68 65 20 |ip on us|ing the |
|00003f70| 52 65 73 45 64 69 74 20 | 43 4f 44 45 20 65 78 74 |ResEdit |CODE ext|
|00003f80| 65 6e 73 69 6f 6e 20 74 | 6f 20 65 78 61 6d 69 6e |ension t|o examin|
|00003f90| 65 20 74 68 65 0d 64 69 | 73 61 73 73 65 6d 62 6c |e the.di|sassembl|
|00003fa0| 79 2e 0d 0d 42 65 6e 20 | 53 69 6e 67 65 72 0d 50 |y...Ben |Singer.P|
|00003fb0| 6f 73 74 64 6f 63 2c 20 | 43 65 6e 74 65 72 20 66 |ostdoc, |Center f|
|00003fc0| 6f 72 20 56 69 73 75 61 | 6c 20 53 63 69 65 6e 63 |or Visua|l Scienc|
|00003fd0| 65 0d 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e.Univer|sity of |
|00003fe0| 52 6f 63 68 65 73 74 65 | 72 0d 62 65 6e 73 40 73 |Rocheste|r.bens@s|
|00003ff0| 77 69 66 74 2e 63 76 73 | 2e 72 6f 63 68 65 73 74 |wift.cvs|.rochest|
|00004000| 65 72 2e 65 64 75 20 28 | 42 65 6e 20 53 69 6e 67 |er.edu (|Ben Sing|
|00004010| 65 72 29 0d 0d 52 41 53 | 54 45 52 4f 50 53 20 38 |er)..RAS|TEROPS 8|
|00004020| 4c 20 26 20 32 34 4c 3a | 0d 52 68 65 61 20 45 73 |L & 24L:|.Rhea Es|
|00004030| 6b 65 77 2c 20 65 73 6b | 65 77 40 6e 65 75 2e 65 |kew, esk|ew@neu.e|
|00004040| 64 75 2c 20 77 72 69 74 | 65 73 20 22 49 20 75 73 |du, writ|es "I us|
|00004050| 65 20 61 20 52 61 73 74 | 65 72 4f 70 73 20 38 4c |e a Rast|erOps 8L|
|00004060| 20 62 6f 61 72 64 20 28 | 69 74 27 73 20 70 72 6f | board (|it's pro|
|00004070| 62 61 62 6c 79 0d 6f 62 | 73 6f 6c 65 74 65 20 6e |bably.ob|solete n|
|00004080| 6f 77 29 2c 20 77 68 69 | 63 68 20 68 61 73 20 6f |ow), whi|ch has o|
|00004090| 6e 65 20 6f 66 20 74 68 | 6f 73 65 20 6c 6f 75 73 |ne of th|ose lous|
|000040a0| 79 20 64 72 69 76 65 72 | 73 2e 20 48 6f 77 65 76 |y driver|s. Howev|
|000040b0| 65 72 2c 20 52 61 73 74 | 65 72 4f 70 73 20 77 61 |er, Rast|erOps wa|
|000040c0| 73 20 6e 69 63 65 0d 65 | 6e 6f 75 67 68 20 74 6f |s nice.e|nough to|
|000040d0| 20 70 72 6f 76 69 64 65 | 20 6d 65 20 77 69 74 68 | provide| me with|
|000040e0| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 20 61 64 | the reg|ister ad|
|000040f0| 64 72 65 73 73 20 61 6e | 64 20 74 68 65 20 62 6c |dress an|d the bl|
|00004100| 61 6e 6b 69 6e 67 20 62 | 69 74 20 61 64 64 72 65 |anking b|it addre|
|00004110| 73 73 2c 20 73 6f 0d 49 | 20 77 72 69 74 65 20 64 |ss, so.I| write d|
|00004120| 69 72 65 63 74 6c 79 20 | 74 6f 20 74 68 65 20 68 |irectly |to the h|
|00004130| 61 72 64 77 61 72 65 2e | 20 54 68 65 20 52 61 73 |ardware.| The Ras|
|00004140| 74 65 72 4f 70 73 20 38 | 4c 20 69 73 20 74 68 65 |terOps 8|L is the|
|00004150| 20 73 61 6d 65 20 61 73 | 20 74 68 65 20 32 34 4c | same as| the 24L|
|00004160| 2c 20 6a 75 73 74 0d 6c | 65 73 73 20 6d 65 6d 6f |, just.l|ess memo|
|00004170| 72 79 2e 20 53 6f 20 49 | 20 70 72 65 73 75 6d 65 |ry. So I| presume|
|00004180| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 20 61 64 | the reg|ister ad|
|00004190| 64 72 65 73 73 65 73 20 | 61 72 65 20 74 68 65 20 |dresses |are the |
|000041a0| 73 61 6d 65 20 66 6f 72 | 20 74 68 65 20 74 77 6f |same for| the two|
|000041b0| 0d 62 6f 61 72 64 73 2e | 20 54 68 65 20 62 6f 61 |.boards.| The boa|
|000041c0| 72 64 27 73 20 62 61 73 | 65 20 61 64 64 72 65 73 |rd's bas|e addres|
|000041d0| 73 20 69 73 20 46 78 30 | 30 30 30 30 30 2c 20 77 |s is Fx0|00000, w|
|000041e0| 68 65 72 65 20 78 3d 4e | 75 62 75 73 20 73 6c 6f |here x=N|ubus slo|
|000041f0| 74 20 6e 75 6d 62 65 72 | 2e 20 54 68 65 0d 43 4c |t number|. The.CL|
|00004200| 55 54 20 6f 66 66 73 65 | 74 20 69 73 20 46 41 30 |UT offse|t is FA0|
|00004210| 30 30 30 2e 20 54 68 65 | 20 76 65 72 74 69 63 61 |000. The| vertica|
|00004220| 6c 20 62 6c 61 6e 6b 69 | 6e 67 20 62 69 74 20 69 |l blanki|ng bit i|
|00004230| 73 20 61 74 20 6f 66 66 | 73 65 74 20 46 37 30 30 |s at off|set F700|
|00004240| 30 30 2e 20 57 61 69 74 | 20 66 6f 72 0d 62 69 74 |00. Wait| for.bit|
|00004250| 73 20 31 20 61 6e 64 20 | 32 20 74 6f 20 62 6f 74 |s 1 and |2 to bot|
|00004260| 68 20 67 6f 20 68 69 67 | 68 2c 20 74 68 65 6e 20 |h go hig|h, then |
|00004270| 6c 6f 77 2e 20 49 67 6e | 6f 72 65 20 62 69 74 20 |low. Ign|ore bit |
|00004280| 30 2e 0d 20 20 20 20 20 | 48 65 72 65 20 69 73 20 |0.. |Here is |
|00004290| 74 68 65 20 36 38 30 78 | 30 20 61 73 73 65 6d 62 |the 680x|0 assemb|
|000042a0| 6c 79 20 63 6f 64 65 20 | 74 68 61 74 20 49 20 75 |ly code |that I u|
|000042b0| 73 65 20 74 6f 20 77 72 | 69 74 65 20 64 69 72 65 |se to wr|ite dire|
|000042c0| 63 74 6c 79 20 74 6f 20 | 74 68 65 20 68 61 72 64 |ctly to |the hard|
|000042d0| 77 61 72 65 20 6f 66 0d | 6d 79 20 52 61 73 74 65 |ware of.|my Raste|
|000042e0| 72 4f 70 73 20 38 4c 20 | 62 6f 61 72 64 2c 20 74 |rOps 8L |board, t|
|000042f0| 6f 20 66 69 6c 6c 20 74 | 68 65 20 63 6c 75 74 2e |o fill t|he clut.|
|00004300| 20 49 74 27 73 20 62 61 | 73 65 64 20 6f 6e 20 73 | It's ba|sed on s|
|00004310| 6f 6d 65 20 61 73 6d 20 | 73 75 70 70 6c 69 65 64 |ome asm |supplied|
|00004320| 20 62 79 0d 52 61 73 74 | 65 72 4f 70 73 2e 20 42 | by.Rast|erOps. B|
|00004330| 65 63 61 75 73 65 20 49 | 20 75 73 65 20 46 4f 52 |ecause I| use FOR|
|00004340| 54 48 2c 20 74 68 65 20 | 6f 70 63 6f 64 65 20 63 |TH, the |opcode c|
|00004350| 6f 6e 76 65 6e 74 69 6f | 6e 73 20 73 68 6f 77 6e |onventio|ns shown|
|00004360| 20 62 65 6c 6f 77 20 6c | 6f 6f 6b 20 61 20 62 69 | below l|ook a bi|
|00004370| 74 0d 64 69 66 66 65 72 | 65 6e 74 20 66 72 6f 6d |t.differ|ent from|
|00004380| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 61 6c 20 36 38 | convent|ional 68|
|00004390| 30 78 30 20 6f 70 63 6f | 64 65 73 2c 20 62 75 74 |0x0 opco|des, but|
|000043a0| 20 6f 66 20 63 6f 75 72 | 73 65 20 74 68 65 79 20 | of cour|se they |
|000043b0| 64 6f 20 74 68 65 20 73 | 61 6d 65 0d 74 68 69 6e |do the s|ame.thin|
|000043c0| 67 73 2e 20 49 20 74 68 | 69 6e 6b 20 74 68 65 79 |gs. I th|ink they|
|000043d0| 20 63 6f 75 6c 64 20 62 | 65 20 66 69 67 75 72 65 | could b|e figure|
|000043e0| 64 20 6f 75 74 20 70 72 | 65 74 74 79 20 65 61 73 |d out pr|etty eas|
|000043f0| 69 6c 79 20 28 61 6e 64 | 20 49 27 6d 20 61 76 61 |ily (and| I'm ava|
|00004400| 69 6c 61 62 6c 65 20 69 | 66 0d 73 6f 6d 65 6f 6e |ilable i|f.someon|
|00004410| 65 20 77 61 6e 74 73 20 | 68 65 6c 70 29 2e 22 0d |e wants |help).".|
|00004420| 68 65 78 20 09 09 09 09 | 09 09 5c 20 65 76 65 72 |hex ....|..\ ever|
|00004430| 79 74 68 69 6e 67 27 73 | 20 69 6e 20 68 65 78 0d |ything's| in hex.|
|00004440| 46 43 30 30 30 30 30 30 | 20 63 6f 6e 73 74 61 6e |FC000000| constan|
|00004450| 74 20 43 61 72 64 62 61 | 73 65 09 5c 20 6d 79 20 |t Cardba|se.\ my |
|00004460| 63 61 72 64 20 69 73 20 | 69 6e 20 73 6c 6f 74 20 |card is |in slot |
|00004470| 43 20 2d 2d 20 74 68 65 | 20 62 61 73 65 20 61 64 |C -- the| base ad|
|00004480| 64 72 65 73 73 20 69 73 | 0d 09 09 09 09 09 09 09 |dress is|........|
|00004490| 5c 20 46 78 30 30 30 30 | 30 30 3b 20 73 75 62 73 |\ Fx0000|00; subs|
|000044a0| 74 69 74 75 74 65 20 79 | 6f 75 72 20 68 65 78 20 |titute y|our hex |
|000044b0| 73 6c 6f 74 20 23 20 66 | 6f 72 20 78 0d 43 61 72 |slot # f|or x.Car|
|000044c0| 64 42 61 73 65 20 46 41 | 30 30 30 30 20 2b 20 63 |dBase FA|0000 + c|
|000044d0| 6f 6e 73 74 61 6e 74 20 | 43 6c 75 74 42 61 73 65 |onstant |ClutBase|
|000044e0| 09 09 5c 20 52 61 73 74 | 65 72 4f 70 73 2d 73 75 |..\ Rast|erOps-su|
|000044f0| 70 70 6c 69 65 64 20 6f | 66 66 73 65 74 0d 43 61 |pplied o|ffset.Ca|
|00004500| 72 64 42 41 53 45 20 46 | 37 30 30 30 30 09 2b 20 |rdBASE F|70000.+ |
|00004510| 63 6f 6e 73 74 61 6e 74 | 20 56 65 72 74 42 69 74 |constant| VertBit|
|00004520| 4f 66 66 09 5c 20 6f 66 | 66 73 65 74 20 74 6f 20 |Off.\ of|fset to |
|00004530| 76 65 72 74 69 63 61 6c | 20 62 6c 61 6e 6b 69 6e |vertical| blankin|
|00004540| 67 20 72 65 67 69 73 74 | 65 72 0d 5c 20 54 68 69 |g regist|er.\ Thi|
|00004550| 73 20 69 73 20 61 20 46 | 4f 52 54 48 20 63 6f 64 |s is a F|ORTH cod|
|00004560| 65 20 72 6f 75 74 69 6e | 65 20 2d 2d 20 74 61 6b |e routin|e -- tak|
|00004570| 65 73 20 61 73 20 73 74 | 61 63 6b 2d 69 6e 70 75 |es as st|ack-inpu|
|00004580| 74 20 70 61 72 61 6d 65 | 74 65 72 73 20 74 68 65 |t parame|ters the|
|00004590| 20 6c 69 73 74 65 64 0d | 5c 20 6e 75 6d 62 65 72 | listed.|\ number|
|000045a0| 73 20 77 69 74 68 20 56 | 65 72 74 42 69 74 4f 66 |s with V|ertBitOf|
|000045b0| 66 20 6f 6e 20 74 6f 70 | 20 6f 66 20 73 74 61 63 |f on top| of stac|
|000045c0| 6b 2e 0d 5c 20 43 6c 75 | 74 42 61 73 65 20 69 73 |k..\ Clu|tBase is|
|000045d0| 20 62 61 73 65 20 61 64 | 64 72 20 6f 66 20 72 61 | base ad|dr of ra|
|000045e0| 73 74 65 72 6f 70 73 20 | 62 6f 61 72 64 20 28 46 |sterops |board (F|
|000045f0| 43 41 30 30 30 30 20 66 | 6f 72 20 73 6c 6f 74 20 |CA0000 f|or slot |
|00004600| 43 29 2b 43 6c 75 74 6f | 66 66 73 65 74 20 28 30 |C)+Cluto|ffset (0|
|00004610| 30 46 41 30 30 30 30 29 | 0d 5c 20 53 6f 75 72 63 |0FA0000)|.\ Sourc|
|00004620| 65 61 64 64 72 20 69 73 | 20 62 61 73 65 20 61 64 |eaddr is| base ad|
|00004630| 64 72 65 73 73 20 69 6e | 20 52 41 4d 20 6f 66 20 |dress in| RAM of |
|00004640| 74 68 65 20 43 6f 6c 6f | 72 53 70 65 63 73 20 28 |the Colo|rSpecs (|
|00004650| 69 6e 64 65 78 2c 72 65 | 64 2c 67 72 65 65 6e 2c |index,re|d,green,|
|00004660| 62 6c 75 65 29 2e 0d 5c | 20 63 6f 75 6e 74 20 69 |blue)..\| count i|
|00004670| 73 20 6e 75 6d 62 65 72 | 27 6f 66 27 65 6d 2e 20 |s number|'of'em. |
|00004680| 28 54 68 65 20 63 6c 75 | 74 20 64 61 74 61 20 61 |(The clu|t data a|
|00004690| 72 65 20 73 74 6f 72 65 | 64 20 61 73 20 57 4f 52 |re store|d as WOR|
|000046a0| 44 53 20 6e 6f 74 20 62 | 79 74 65 73 2e 29 0d 5c |DS not b|ytes.).\|
|000046b0| 20 56 65 72 74 42 69 74 | 4f 66 66 20 69 73 20 72 | VertBit|Off is r|
|000046c0| 65 67 69 73 74 65 72 20 | 66 6f 72 20 76 65 72 74 |egister |for vert|
|000046d0| 69 63 61 6c 20 62 6c 61 | 6e 6b 69 6e 67 20 28 52 |ical bla|nking (R|
|000046e0| 4f 62 61 73 65 2b 46 37 | 30 30 30 30 29 0d 5c 20 |Obase+F7|0000).\ |
|000046f0| 27 73 70 27 20 73 74 61 | 6e 64 73 20 66 6f 72 20 |'sp' sta|nds for |
|00004700| 73 74 61 63 6b 20 70 6f | 69 6e 74 65 72 20 3d 20 |stack po|inter = |
|00004710| 72 65 67 69 73 74 65 72 | 20 61 37 0d 5c 20 28 54 |register| a7.\ (T|
|00004720| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 73 65 65 6d |his vers|ion seem|
|00004730| 73 20 74 6f 20 77 6f 72 | 6b 20 77 2f 6f 20 67 6c |s to wor|k w/o gl|
|00004740| 69 74 63 68 65 73 20 2d | 2d 20 6d 6f 76 65 64 20 |itches -|- moved |
|00004750| 62 6c 61 6e 6b 69 6e 67 | 20 75 70 20 74 6f 20 74 |blanking| up to t|
|00004760| 6f 70 20 6f 66 20 72 6f | 75 74 69 6e 65 2e 29 0d |op of ro|utine.).|
|00004770| 63 6f 64 65 09 52 2d 4f | 53 65 74 50 61 6c 20 28 |code.R-O|SetPal (|
|00004780| 20 43 6c 75 74 42 61 73 | 65 5c 53 6f 75 72 63 65 | ClutBas|e\Source|
|00004790| 61 64 64 72 5c 63 6f 75 | 6e 74 5c 56 65 72 74 42 |addr\cou|nt\VertB|
|000047a0| 69 74 4f 66 66 20 2d 2d | 20 29 0d 09 31 20 20 44 |itOff --| )..1 D|
|000047b0| 30 20 4d 4f 56 45 51 2c | 20 41 30 35 44 20 77 2c |0 MOVEQ,| A05D w,|
|000047c0| 09 5c 20 73 77 61 70 70 | 6d 6d 75 6d 6f 64 65 20 |.\ swapp|mmumode |
|000047d0| 74 6f 20 33 32 62 69 74 | 0d 09 61 34 09 64 33 09 |to 32bit|..a4.d3.|
|000047e0| 6c 6f 6e 67 09 6d 6f 76 | 65 2c 09 5c 20 73 61 76 |long.mov|e,.\ sav|
|000047f0| 65 20 55 50 20 28 61 34 | 29 20 69 6e 20 64 33 3b |e UP (a4|) in d3;|
|00004800| 20 72 65 73 74 6f 72 65 | 20 61 74 20 65 6e 64 21 | restore| at end!|
|00004810| 0d 09 73 70 20 29 2b 20 | 61 34 09 6c 6f 6e 67 20 |..sp )+ |a4.long |
|00004820| 6d 6f 76 65 2c 09 5c 20 | 70 75 74 20 76 65 72 74 |move,.\ |put vert|
|00004830| 62 69 74 6f 66 66 20 69 | 6e 74 6f 20 61 34 20 0d |bitoff i|nto a4 .|
|00004840| 09 5c 20 77 61 69 74 20 | 66 6f 72 20 62 6c 61 6e |.\ wait |for blan|
|00004850| 6b 69 6e 67 0d 09 62 65 | 67 69 6e 2c 0d 09 09 61 |king..be|gin,...a|
|00004860| 34 20 28 29 20 20 20 31 | 44 20 32 09 64 31 09 62 |4 () 1|D 2.d1.b|
|00004870| 66 65 78 74 75 2c 09 5c | 20 6f 66 66 73 65 74 20 |fextu,.\| offset |
|00004880| 69 73 20 32 39 3d 24 31 | 44 2c 20 62 69 74 73 20 |is 29=$1|D, bits |
|00004890| 32 20 61 6e 64 20 31 20 | 28 62 69 74 20 30 20 6e |2 and 1 |(bit 0 n|
|000048a0| 6f 74 20 75 73 65 64 21 | 21 21 29 0d 09 09 64 31 |ot used!|!!)...d1|
|000048b0| 09 33 20 20 09 62 79 74 | 65 20 73 75 62 71 2c 09 |.3 .byt|e subq,.|
|000048c0| 5c 20 33 20 65 71 75 61 | 6c 73 20 32 20 62 69 74 |\ 3 equa|ls 2 bit|
|000048d0| 73 20 73 65 74 20 61 74 | 20 6c 6f 77 20 65 6e 64 |s set at| low end|
|000048e0| 20 6f 66 20 64 31 0d 09 | 65 71 09 09 75 6e 74 69 | of d1..|eq..unti|
|000048f0| 6c 2c 09 09 09 5c 20 77 | 61 69 74 20 75 6e 74 69 |l,...\ w|ait unti|
|00004900| 6c 20 69 74 20 65 71 75 | 61 6c 73 20 33 0d 09 62 |l it equ|als 3..b|
|00004910| 65 67 69 6e 2c 0d 09 09 | 61 34 20 28 29 20 20 20 |egin,...|a4 () |
|00004920| 31 44 20 32 09 64 31 09 | 62 66 65 78 74 75 2c 09 |1D 2.d1.|bfextu,.|
|00004930| 5c 20 6f 66 66 73 65 74 | 20 69 73 20 32 39 3d 24 |\ offset| is 29=$|
|00004940| 31 44 20 62 69 74 73 20 | 32 20 61 6e 64 20 31 20 |1D bits |2 and 1 |
|00004950| 28 62 69 74 20 30 20 6e | 6f 74 20 75 73 65 64 21 |(bit 0 n|ot used!|
|00004960| 21 21 29 0d 09 65 71 09 | 09 75 6e 74 69 6c 2c 09 |!!)..eq.|.until,.|
|00004970| 09 09 5c 20 77 61 69 74 | 20 75 6e 74 69 6c 20 62 |..\ wait| until b|
|00004980| 6f 74 68 20 62 69 74 73 | 20 61 72 65 20 7a 65 72 |oth bits| are zer|
|00004990| 6f 0d 09 5c 20 62 6c 61 | 6e 6b 69 6e 67 20 64 6f |o..\ bla|nking do|
|000049a0| 6e 65 0d 09 73 70 20 29 | 2b 20 44 30 20 6c 6f 6e |ne..sp )|+ D0 lon|
|000049b0| 67 20 6d 6f 76 65 2c 09 | 09 5c 20 70 75 74 20 63 |g move,.|.\ put c|
|000049c0| 6f 75 6e 74 20 74 6f 20 | 64 30 0d 09 73 70 20 29 |ount to |d0..sp )|
|000049d0| 2b 20 61 31 20 6c 6f 6e | 67 20 6d 6f 76 65 2c 09 |+ a1 lon|g move,.|
|000049e0| 09 5c 20 70 75 74 20 73 | 6f 75 72 63 65 20 69 6e |.\ put s|ource in|
|000049f0| 74 6f 20 61 31 0d 09 73 | 70 20 29 2b 20 41 30 09 |to a1..s|p )+ A0.|
|00004a00| 6c 6f 6e 67 20 6d 6f 76 | 65 2c 09 5c 20 70 75 74 |long mov|e,.\ put|
|00004a10| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 20 28 63 6c | destina|tion (cl|
|00004a20| 75 74 62 61 73 65 29 20 | 74 6f 20 61 30 0d 09 62 |utbase) |to a0..b|
|00004a30| 65 67 69 6e 2c 0d 09 09 | 61 31 20 29 2b 20 33 20 |egin,...|a1 )+ 3 |
|00004a40| 61 30 20 20 69 29 20 62 | 79 74 65 20 6d 6f 76 65 |a0 i) b|yte move|
|00004a50| 2c 09 5c 20 69 6e 64 65 | 78 20 0d 09 09 61 31 09 |,.\ inde|x ...a1.|
|00004a60| 31 09 09 20 20 20 6c 6f | 6e 67 09 41 44 44 51 2c |1.. lo|ng.ADDQ,|
|00004a70| 09 5c 20 69 6e 63 72 65 | 6d 65 6e 74 20 61 6e 20 |.\ incre|ment an |
|00004a80| 65 78 74 72 61 20 62 79 | 74 65 0d 09 09 61 31 20 |extra by|te...a1 |
|00004a90| 29 2b 20 37 20 61 30 20 | 20 69 29 20 62 79 74 65 |)+ 7 a0 | i) byte|
|00004aa0| 20 6d 6f 76 65 2c 09 5c | 20 72 65 64 0d 09 09 61 | move,.\| red...a|
|00004ab0| 31 09 31 09 09 20 20 20 | 6c 6f 6e 67 09 41 44 44 |1.1.. |long.ADD|
|00004ac0| 51 2c 09 5c 20 69 6e 63 | 72 65 6d 65 6e 74 20 61 |Q,.\ inc|rement a|
|00004ad0| 6e 20 65 78 74 72 61 20 | 62 79 74 65 0d 09 09 61 |n extra |byte...a|
|00004ae0| 31 20 29 2b 20 37 20 61 | 30 20 20 69 29 20 62 79 |1 )+ 7 a|0 i) by|
|00004af0| 74 65 20 6d 6f 76 65 2c | 09 5c 20 67 72 65 65 6e |te move,|.\ green|
|00004b00| 0d 09 09 61 31 09 31 09 | 09 20 20 20 6c 6f 6e 67 |...a1.1.|. long|
|00004b10| 09 41 44 44 51 2c 09 5c | 20 69 6e 63 72 65 6d 65 |.ADDQ,.\| increme|
|00004b20| 6e 74 20 61 6e 20 65 78 | 74 72 61 20 62 79 74 65 |nt an ex|tra byte|
|00004b30| 0d 09 09 61 31 20 29 2b | 20 37 20 61 30 20 20 69 |...a1 )+| 7 a0 i|
|00004b40| 29 20 62 79 74 65 20 6d | 6f 76 65 2c 09 5c 20 62 |) byte m|ove,.\ b|
|00004b50| 6c 75 65 0d 09 09 61 31 | 09 31 09 09 20 20 20 6c |lue...a1|.1.. l|
|00004b60| 6f 6e 67 09 41 44 44 51 | 2c 09 5c 20 69 6e 63 72 |ong.ADDQ|,.\ incr|
|00004b70| 65 6d 65 6e 74 20 61 6e | 20 65 78 74 72 61 20 62 |ement an| extra b|
|00004b80| 79 74 65 0d 09 09 64 30 | 20 31 20 6c 6f 6e 67 20 |yte...d0| 1 long |
|00004b90| 73 75 62 71 2c 0d 09 65 | 71 20 75 6e 74 69 6c 2c |subq,..e|q until,|
|00004ba0| 20 20 20 20 20 20 20 0d | 09 64 33 09 61 34 09 6c | .|.d3.a4.l|
|00004bb0| 6f 6e 67 20 6d 6f 76 65 | 2c 09 09 5c 20 52 65 73 |ong move|,..\ Res|
|00004bc0| 74 6f 72 65 20 55 50 0d | 09 30 20 20 44 30 20 4d |tore UP.|.0 D0 M|
|00004bd0| 4f 56 45 51 2c 20 41 30 | 35 44 20 77 2c 09 5c 20 |OVEQ, A0|5D w,.\ |
|00004be0| 53 77 61 70 4d 4d 55 4d | 6f 64 65 20 62 61 63 6b |SwapMMUM|ode back|
|00004bf0| 0d 09 6e 65 78 74 0d 65 | 6e 64 2d 63 6f 64 65 0d |..next.e|nd-code.|
|00004c00| 0d 48 49 53 54 4f 52 59 | 3a 0d 38 2f 32 34 2f 39 |.HISTORY|:.8/24/9|
|00004c10| 32 20 4f 72 69 67 69 6e | 61 6c 20 73 65 74 63 61 |2 Origin|al setca|
|00004c20| 72 64 62 61 73 65 20 61 | 6e 64 20 6d 61 63 6c 74 |rdbase a|nd maclt|
|00004c30| 73 65 74 20 70 72 6f 76 | 69 64 65 64 20 62 79 20 |set prov|ided by |
|00004c40| 52 61 79 6e 61 6c 64 20 | 43 6f 6d 74 6f 69 73 0d |Raynald |Comtois.|
|00004c50| 28 72 61 63 6f 40 77 6a | 68 31 32 2e 68 61 72 76 |(raco@wj|h12.harv|
|00004c60| 61 72 64 2e 65 64 75 29 | 20 74 6f 20 44 65 6e 69 |ard.edu)| to Deni|
|00004c70| 73 20 50 65 6c 6c 69 2e | 0d 0d 31 30 2f 32 2f 39 |s Pelli.|..10/2/9|
|00004c80| 32 20 42 69 6c 6c 20 48 | 61 61 6b 65 20 61 64 64 |2 Bill H|aake add|
|00004c90| 65 64 20 63 6f 64 65 20 | 66 6f 72 20 74 68 65 20 |ed code |for the |
|00004ca0| 52 61 73 74 65 72 4f 70 | 73 20 50 72 6f 43 6f 6c |RasterOp|s ProCol|
|00004cb0| 6f 72 20 33 32 2c 20 77 | 68 69 63 68 20 68 61 73 |or 32, w|hich has|
|00004cc0| 20 39 2d 62 69 74 0d 44 | 41 43 73 20 61 6e 64 20 | 9-bit.D|ACs and |
|00004cd0| 39 2d 62 69 74 20 65 6e | 74 72 69 65 73 20 69 6e |9-bit en|tries in|
|00004ce0| 20 74 68 65 20 6c 6f 6f | 6b 75 70 20 74 61 62 6c | the loo|kup tabl|
|00004cf0| 65 2e 0d 0d 31 30 2f 31 | 2f 39 32 20 50 65 74 65 |e...10/1|/92 Pete|
|00004d00| 72 20 4c 65 6e 6e 69 65 | 20 61 64 64 65 64 20 63 |r Lennie| added c|
|00004d10| 6f 64 65 20 66 6f 72 20 | 51 75 61 64 72 61 20 69 |ode for |Quadra i|
|00004d20| 6e 74 65 72 6e 61 6c 20 | 76 69 64 65 6f 2e 20 20 |nternal |video. |
|00004d30| 4e 6f 20 70 72 6f 76 69 | 73 69 6f 6e 20 66 6f 72 |No provi|sion for|
|00004d40| 0d 63 68 61 6e 67 69 6e | 67 20 74 68 65 20 73 74 |.changin|g the st|
|00004d50| 61 72 74 20 70 6f 73 69 | 74 69 6f 6e 20 69 6e 20 |art posi|tion in |
|00004d60| 74 68 65 20 74 61 62 6c | 65 2c 20 28 49 20 63 6f |the tabl|e, (I co|
|00004d70| 75 6c 64 6e 27 74 20 66 | 69 6e 64 20 61 6e 79 20 |uldn't f|ind any |
|00004d80| 72 65 6c 65 76 61 6e 74 | 0d 64 69 73 61 73 73 65 |relevant|.disasse|
|00004d90| 6d 62 6c 79 29 20 73 6f | 20 27 73 74 61 72 74 27 |mbly) so| 'start'|
|00004da0| 20 69 73 20 69 67 6e 6f | 72 65 64 2c 20 61 6e 64 | is igno|red, and|
|00004db0| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 77 72 69 74 | you sho|uld writ|
|00004dc0| 65 20 74 68 65 20 77 68 | 6f 6c 65 20 74 61 62 6c |e the wh|ole tabl|
|00004dd0| 65 2e 0d 09 0d 39 2f 33 | 30 2f 39 32 20 42 69 6c |e....9/3|0/92 Bil|
|00004de0| 6c 20 48 61 61 6b 65 20 | 26 20 50 65 74 65 72 20 |l Haake |& Peter |
|00004df0| 4c 65 6e 6e 69 65 20 6d | 6f 64 69 66 69 65 64 20 |Lennie m|odified |
|00004e00| 74 68 65 20 63 6f 64 65 | 20 66 6f 72 20 74 68 65 |the code| for the|
|00004e10| 20 38 78 32 34 20 63 61 | 72 64 0d 61 6e 64 20 74 | 8x24 ca|rd.and t|
|00004e20| 68 65 20 38 78 32 34 47 | 43 20 74 6f 20 6d 61 6b |he 8x24G|C to mak|
|00004e30| 65 20 69 74 20 61 29 20 | 77 6f 72 6b 20 70 72 6f |e it a) |work pro|
|00004e40| 70 65 72 6c 79 20 69 6e | 20 33 32 2d 62 69 74 20 |perly in| 32-bit |
|00004e50| 6d 6f 64 65 2e 20 62 29 | 20 74 6f 20 66 69 78 20 |mode. b)| to fix |
|00004e60| 61 20 62 75 67 0d 28 66 | 65 61 74 75 72 65 3f 29 |a bug.(f|eature?)|
|00004e70| 20 6f 66 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | of the |original|
|00004e80| 20 64 72 69 76 65 72 73 | 20 74 68 61 74 20 70 72 | drivers| that pr|
|00004e90| 65 76 65 6e 74 65 64 20 | 74 68 65 20 63 61 72 64 |evented |the card|
|00004ea0| 73 20 72 75 6e 6e 69 6e | 67 20 6f 6e 20 61 20 51 |s runnin|g on a Q|
|00004eb0| 75 61 64 72 61 2e 0d 54 | 68 65 20 64 72 69 76 65 |uadra..T|he drive|
|00004ec0| 72 73 20 65 78 70 6c 6f | 69 74 20 27 62 79 74 65 |rs explo|it 'byte|
|00004ed0| 2d 73 6d 65 61 72 69 6e | 67 27 20 6f 6e 20 74 68 |-smearin|g' on th|
|00004ee0| 65 20 36 38 30 32 30 20 | 61 6e 64 20 36 38 30 33 |e 68020 |and 6803|
|00004ef0| 30 20 28 54 65 63 68 20 | 4e 6f 74 65 20 32 38 32 |0 (Tech |Note 282|
|00004f00| 29 2e 20 54 68 69 73 0d | 6d 65 61 6e 73 20 74 68 |). This.|means th|
|00004f10| 61 74 20 6f 6e 65 20 63 | 61 6e 20 6d 6f 76 65 20 |at one c|an move |
|00004f20| 61 20 62 79 74 65 20 74 | 6f 20 74 68 65 20 6c 6f |a byte t|o the lo|
|00004f30| 77 65 73 74 20 62 79 74 | 65 20 61 64 64 72 65 73 |west byt|e addres|
|00004f40| 73 20 6f 66 20 74 68 65 | 20 64 61 74 61 20 72 65 |s of the| data re|
|00004f50| 67 69 73 74 65 72 0d 6f | 6e 20 74 68 65 20 63 61 |gister.o|n the ca|
|00004f60| 72 64 2c 20 77 68 65 6e | 20 6f 6e 65 20 61 63 74 |rd, when| one act|
|00004f70| 75 61 6c 6c 79 20 77 61 | 6e 74 73 20 74 6f 20 70 |ually wa|nts to p|
|00004f80| 75 74 20 69 74 20 61 74 | 20 61 64 64 72 65 73 73 |ut it at| address|
|00004f90| 2b 33 20 28 21 21 29 2e | 20 54 68 65 20 66 75 6e |+3 (!!).| The fun|
|00004fa0| 63 74 69 6f 6e 73 0d 77 | 6f 72 6b 20 66 6f 72 20 |ctions.w|ork for |
|00004fb0| 61 6c 6c 20 74 68 65 20 | 63 61 72 64 73 20 28 65 |all the |cards (e|
|00004fc0| 78 63 65 70 74 20 74 6f | 62 79 2c 20 77 68 69 63 |xcept to|by, whic|
|00004fd0| 68 20 68 61 73 6e 27 74 | 20 62 65 65 6e 20 74 65 |h hasn't| been te|
|00004fe0| 73 74 65 64 29 20 61 6e | 64 20 6f 6e 20 69 6e 74 |sted) an|d on int|
|00004ff0| 65 72 6e 61 6c 0d 76 69 | 64 65 6f 20 69 6e 20 62 |ernal.vi|deo in b|
|00005000| 6f 74 68 20 32 34 20 61 | 6e 64 20 33 32 20 62 69 |oth 24 a|nd 32 bi|
|00005010| 74 20 6d 6f 64 65 20 6f | 6e 20 51 75 61 64 72 61 |t mode o|n Quadra|
|00005020| 20 37 30 30 2f 39 35 30 | 2c 20 49 49 66 78 20 6f | 700/950|, IIfx o|
|00005030| 72 20 63 69 20 72 75 6e | 6e 69 6e 67 20 73 79 73 |r ci run|ning sys|
|00005040| 74 65 6d 0d 37 2e 30 2e | 31 2e 0d 09 0d 39 2f 32 |tem.7.0.|1....9/2|
|00005050| 38 2f 39 32 20 50 65 74 | 65 72 20 4c 65 6e 6e 69 |8/92 Pet|er Lenni|
|00005060| 65 20 61 64 64 65 64 20 | 74 68 65 20 66 75 6e 63 |e added |the func|
|00005070| 74 69 6f 6e 20 66 69 6e | 64 63 61 72 64 2e 0d 0d |tion fin|dcard...|
|00005080| 31 31 2f 32 33 2f 39 32 | 20 44 65 6e 69 73 20 50 |11/23/92| Denis P|
|00005090| 65 6c 6c 69 20 28 64 67 | 70 29 20 65 6c 69 6d 69 |elli (dg|p) elimi|
|000050a0| 6e 61 74 65 64 20 61 6c | 6c 20 67 6c 6f 62 61 6c |nated al|l global|
|000050b0| 73 20 62 65 63 61 75 73 | 65 20 74 68 65 79 20 69 |s becaus|e they i|
|000050c0| 6d 70 6c 69 63 69 74 6c | 79 0d 61 73 73 75 6d 65 |mplicitl|y.assume|
|000050d0| 64 20 74 68 61 74 20 74 | 68 65 72 65 20 69 73 20 |d that t|here is |
|000050e0| 6f 6e 6c 79 20 6f 6e 65 | 20 76 69 64 65 6f 20 64 |only one| video d|
|000050f0| 65 76 69 63 65 2e 20 41 | 6c 6c 20 72 6f 75 74 69 |evice. A|ll routi|
|00005100| 6e 65 73 20 6e 6f 77 20 | 61 63 63 65 70 74 20 61 |nes now |accept a|
|00005110| 20 47 44 48 61 6e 64 6c | 65 0d 73 70 65 63 69 66 | GDHandl|e.specif|
|00005120| 79 69 6e 67 20 77 68 69 | 63 68 20 76 69 64 65 6f |ying whi|ch video|
|00005130| 20 64 65 76 69 63 65 2e | 20 53 69 6d 70 6c 69 66 | device.| Simplif|
|00005140| 69 65 64 20 74 68 65 20 | 6c 6f 67 69 63 20 6f 66 |ied the |logic of|
|00005150| 20 47 65 74 43 61 72 64 | 42 61 73 65 28 29 2c 20 | GetCard|Base(), |
|00005160| 6d 69 6e 69 6d 69 7a 69 | 6e 67 0d 74 68 65 20 64 |minimizi|ng.the d|
|00005170| 65 70 65 6e 64 65 6e 63 | 65 20 6f 6e 20 63 61 72 |ependenc|e on car|
|00005180| 64 20 74 79 70 65 2e 0d | 0d 31 31 2f 32 35 2f 39 |d type..|.11/25/9|
|00005190| 32 20 64 67 70 20 57 68 | 65 6e 20 55 53 45 5f 4d |2 dgp Wh|en USE_M|
|000051a0| 53 42 20 69 73 20 74 72 | 75 65 2c 20 61 6c 6c 20 |SB is tr|ue, all |
|000051b0| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 20 6e 6f 77 |the rout|ines now|
|000051c0| 20 75 73 65 20 74 68 65 | 20 6d 6f 73 74 20 73 69 | use the| most si|
|000051d0| 67 6e 69 66 69 63 61 6e | 74 0d 62 69 74 73 20 6f |gnifican|t.bits o|
|000051e0| 66 20 74 68 65 20 31 36 | 2d 62 69 74 20 65 6c 65 |f the 16|-bit ele|
|000051f0| 6d 65 6e 74 73 20 6f 66 | 20 74 68 65 20 75 73 65 |ments of| the use|
|00005200| 72 2d 73 75 70 70 6c 69 | 65 64 20 63 6f 6c 6f 72 |r-suppli|ed color|
|00005210| 20 74 61 62 6c 65 73 2e | 20 57 68 65 6e 20 69 74 | tables.| When it|
|00005220| 20 69 73 20 66 61 6c 73 | 65 0d 74 68 65 20 6c 65 | is fals|e.the le|
|00005230| 61 73 74 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 |ast sign|ificant |
|00005240| 62 69 74 73 20 61 72 65 | 20 75 73 65 64 2e 20 54 |bits are| used. T|
|00005250| 68 69 73 20 69 73 20 6d | 6f 73 74 6c 79 20 69 6d |his is m|ostly im|
|00005260| 70 6c 65 6d 65 6e 74 65 | 64 20 62 79 20 6f 66 66 |plemente|d by off|
|00005270| 73 65 74 69 6e 67 20 74 | 68 65 0d 74 61 62 6c 65 |seting t|he.table|
|00005280| 20 70 6f 69 6e 74 65 72 | 73 20 62 79 20 6f 6e 65 | pointer|s by one|
|00005290| 20 62 79 74 65 20 61 6e | 64 20 6f 6e 6c 79 20 72 | byte an|d only r|
|000052a0| 65 61 64 69 6e 67 20 74 | 68 65 20 64 65 73 69 72 |eading t|he desir|
|000052b0| 65 64 20 62 79 74 65 2e | 20 a5 47 65 6e 65 72 61 |ed byte.| .Genera|
|000052c0| 6c 69 7a 65 64 0d 6d 61 | 63 6c 74 73 65 74 28 29 |lized.ma|cltset()|
|000052d0| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 74 61 | to work| with ta|
|000052e0| 62 6c 65 73 20 74 68 61 | 74 20 68 61 76 65 20 61 |bles tha|t have a|
|000052f0| 6e 20 61 72 62 69 74 72 | 61 72 79 20 65 6c 65 6d |n arbitr|ary elem|
|00005300| 65 6e 74 20 73 70 61 63 | 69 6e 67 2e 20 54 68 69 |ent spac|ing. Thi|
|00005310| 73 0d 61 6c 6c 6f 77 73 | 20 69 74 20 74 6f 20 77 |s.allows| it to w|
|00005320| 6f 72 6b 20 77 69 74 68 | 20 62 6f 74 68 20 77 69 |ork with| both wi|
|00005330| 74 68 20 52 61 79 6e 61 | 6c 64 27 73 20 63 6f 6e |th Rayna|ld's con|
|00005340| 76 65 6e 74 69 6f 6e 20 | 6f 66 20 74 68 72 65 65 |vention |of three|
|00005350| 20 61 72 72 61 79 73 20 | 6f 66 20 73 68 6f 72 74 | arrays |of short|
|00005360| 73 2c 0d 61 6e 64 20 74 | 68 65 20 41 70 70 6c 65 |s,.and t|he Apple|
|00005370| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 20 6f 66 20 61 | convent|ion of a|
|00005380| 20 43 6f 6c 6f 72 53 70 | 65 63 20 61 72 72 61 79 | ColorSp|ec array|
|00005390| 2c 20 65 61 63 68 20 65 | 6c 65 6d 65 6e 74 20 6f |, each e|lement o|
|000053a0| 66 20 77 68 69 63 68 20 | 63 6f 6e 73 69 73 74 73 |f which |consists|
|000053b0| 20 6f 66 0d 72 65 64 2c | 20 67 72 65 65 6e 2c 20 | of.red,| green, |
|000053c0| 62 6c 75 65 2c 20 61 6e | 64 20 76 61 6c 75 65 20 |blue, an|d value |
|000053d0| 28 77 68 69 63 68 20 69 | 73 20 6e 6f 74 20 75 73 |(which i|s not us|
|000053e0| 65 64 29 2e 20 a5 41 64 | 64 65 64 20 61 6c 69 61 |ed). .Ad|ded alia|
|000053f0| 73 20 22 54 6f 62 79 20 | 66 72 61 6d 65 20 62 75 |s "Toby |frame bu|
|00005400| 66 66 65 72 0d 63 61 72 | 64 22 20 66 6f 72 20 74 |ffer.car|d" for t|
|00005410| 6f 62 79 63 61 72 64 2e | 0d 0d 31 31 2f 32 37 2f |obycard.|..11/27/|
|00005420| 39 32 20 64 67 70 20 42 | 72 6f 6b 65 20 6f 75 74 |92 dgp B|roke out|
|00005430| 20 74 68 65 20 63 6f 64 | 65 20 66 6f 72 20 65 61 | the cod|e for ea|
|00005440| 63 68 20 63 61 72 64 20 | 69 6e 74 6f 20 73 65 70 |ch card |into sep|
|00005450| 61 72 61 74 65 20 73 75 | 62 72 6f 75 74 69 6e 65 |arate su|broutine|
|00005460| 73 2e 20 54 68 69 73 0d | 61 6c 6c 6f 77 73 20 6f |s. This.|allows o|
|00005470| 70 74 69 6d 61 6c 20 72 | 65 67 69 73 74 65 72 20 |ptimal r|egister |
|00005480| 61 73 73 69 67 6e 6d 65 | 6e 74 20 66 6f 72 20 65 |assignme|nt for e|
|00005490| 61 63 68 20 72 6f 75 74 | 69 6e 65 2c 20 61 6e 64 |ach rout|ine, and|
|000054a0| 20 6d 61 6b 65 73 20 69 | 74 20 6d 75 63 68 20 65 | makes i|t much e|
|000054b0| 61 73 69 65 72 20 74 6f | 20 72 65 61 64 0d 74 68 |asier to| read.th|
|000054c0| 65 20 54 48 49 4e 4b 20 | 43 20 64 69 73 61 73 73 |e THINK |C disass|
|000054d0| 65 6d 62 6c 65 72 20 6f | 75 74 70 75 74 2e 20 54 |embler o|utput. T|
|000054e0| 68 65 20 72 75 6e 74 69 | 6d 65 20 6f 76 65 72 68 |he runti|me overh|
|000054f0| 65 61 64 20 6f 66 20 6c | 6f 61 64 69 6e 67 20 61 |ead of l|oading a|
|00005500| 6e 64 20 75 6e 6c 6f 61 | 64 69 6e 67 0d 74 68 65 |nd unloa|ding.the|
|00005510| 20 73 74 61 63 6b 20 69 | 73 20 6e 65 67 6c 69 67 | stack i|s neglig|
|00005520| 69 62 6c 65 2c 20 61 6e | 64 20 63 6f 75 6c 64 20 |ible, an|d could |
|00005530| 62 65 20 65 6c 69 6d 69 | 6e 61 74 65 64 20 65 6e |be elimi|nated en|
|00005540| 74 69 72 65 6c 79 20 62 | 79 20 70 75 74 74 69 6e |tirely b|y puttin|
|00005550| 67 20 61 6c 6c 20 74 68 | 65 0d 70 61 72 61 6d 65 |g all th|e.parame|
|00005560| 74 65 72 73 20 69 6e 20 | 61 20 73 74 72 75 63 74 |ters in |a struct|
|00005570| 75 72 65 20 61 6e 64 20 | 70 61 73 73 69 6e 67 20 |ure and |passing |
|00005580| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 69 74 2e |a pointe|r to it.|
|00005590| 20 a5 41 64 64 65 64 20 | 61 20 66 6c 61 67 2c 0d | .Added |a flag,.|
|000055a0| 73 75 73 70 65 6e 64 49 | 6e 74 65 72 72 75 70 74 |suspendI|nterrupt|
|000055b0| 73 2c 20 74 6f 20 6d 61 | 6b 65 20 69 6e 74 65 72 |s, to ma|ke inter|
|000055c0| 72 75 70 74 20 73 75 73 | 70 65 6e 73 69 6f 6e 20 |rupt sus|pension |
|000055d0| 6f 70 74 69 6f 6e 61 6c | 20 73 69 6e 63 65 20 69 |optional| since i|
|000055e0| 74 20 6d 61 79 20 62 65 | 0d 75 6e 64 65 73 69 72 |t may be|.undesir|
|000055f0| 61 62 6c 65 20 69 6e 20 | 73 6f 6d 65 20 61 70 70 |able in |some app|
|00005600| 6c 69 63 61 74 69 6f 6e | 73 2e 20 28 42 6c 6f 63 |lication|s. (Bloc|
|00005610| 6b 69 6e 67 20 69 6e 74 | 65 72 72 75 70 74 73 20 |king int|errupts |
|00005620| 66 6f 72 20 31 20 6d 73 | 20 63 6f 75 6c 64 20 63 |for 1 ms| could c|
|00005630| 61 75 73 65 20 79 6f 75 | 0d 74 6f 20 6d 69 73 73 |ause you|.to miss|
|00005640| 20 74 68 65 20 69 6e 74 | 65 72 72 75 70 74 20 66 | the int|errupt f|
|00005650| 72 6f 6d 20 61 20 76 69 | 64 65 6f 20 63 61 72 64 |rom a vi|deo card|
|00005660| 2c 20 65 73 70 65 63 69 | 61 6c 6c 79 20 69 66 20 |, especi|ally if |
|00005670| 79 6f 75 20 61 72 65 20 | 74 72 79 69 6e 67 20 74 |you are |trying t|
|00005680| 6f 20 6b 65 65 70 0d 74 | 72 61 63 6b 20 6f 66 20 |o keep.t|rack of |
|00005690| 69 6e 74 65 72 72 75 70 | 74 73 20 6f 6e 20 73 65 |interrup|ts on se|
|000056a0| 76 65 72 61 6c 20 76 69 | 64 65 6f 20 63 61 72 64 |veral vi|deo card|
|000056b0| 73 20 61 74 20 6f 6e 63 | 65 2e 29 0d 0d 31 31 2f |s at onc|e.)..11/|
|000056c0| 33 30 2f 39 32 20 64 67 | 70 20 57 72 6f 74 65 20 |30/92 dg|p Wrote |
|000056d0| 54 65 73 74 43 6c 75 74 | 73 2c 20 77 68 69 63 68 |TestClut|s, which|
|000056e0| 20 72 65 61 64 73 20 62 | 61 63 6b 20 74 68 65 20 | reads b|ack the |
|000056f0| 63 6c 75 74 20 61 6e 64 | 20 63 68 65 63 6b 73 20 |clut and| checks |
|00005700| 61 6c 6c 0d 76 61 6c 75 | 65 73 2c 20 61 6e 64 20 |all.valu|es, and |
|00005710| 75 73 65 64 20 69 74 20 | 74 6f 20 74 65 73 74 20 |used it |to test |
|00005720| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|00005730| 79 28 29 20 6f 6e 20 51 | 75 61 64 72 61 20 39 35 |y() on Q|uadra 95|
|00005740| 30 20 69 6e 74 65 72 6e | 61 6c 20 76 69 64 65 6f |0 intern|al video|
|00005750| 2c 0d 4d 61 63 20 49 49 | 63 69 20 69 6e 74 65 72 |,.Mac II|ci inter|
|00005760| 6e 61 6c 20 76 69 64 65 | 6f 2c 20 68 69 72 65 73 |nal vide|o, hires|
|00005770| 63 61 72 64 2c 20 22 54 | 6f 62 79 20 66 72 61 6d |card, "T|oby fram|
|00005780| 65 20 62 75 66 66 65 72 | 20 63 61 72 64 22 2c 20 |e buffer| card", |
|00005790| 61 6e 64 20 38 a5 32 34 | 20 63 61 72 64 20 61 74 |and 8.24| card at|
|000057a0| 0d 61 6c 6c 20 64 65 70 | 74 68 73 2c 20 66 6f 72 |.all dep|ths, for|
|000057b0| 20 62 6f 74 68 20 32 34 | 2d 20 61 6e 64 20 33 32 | both 24|- and 32|
|000057c0| 2d 62 69 74 20 61 64 64 | 72 65 73 73 69 6e 67 2e |-bit add|ressing.|
|000057d0| 20 54 6f 62 79 20 63 61 | 72 64 20 77 61 73 20 74 | Toby ca|rd was t|
|000057e0| 65 73 74 65 64 20 6f 6e | 20 36 38 30 32 30 2c 0d |ested on| 68020,.|
|000057f0| 36 38 30 33 30 2c 20 61 | 6e 64 20 36 38 30 34 30 |68030, a|nd 68040|
|00005800| 20 70 72 6f 63 65 73 73 | 6f 72 73 2e 20 a5 57 72 | process|ors. .Wr|
|00005810| 6f 74 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ote docu|mentatio|
|00005820| 6e 2e 20 a5 52 65 70 6c | 61 63 65 64 20 63 6f 6d |n. .Repl|aced com|
|00005830| 70 69 6c 65 2d 74 69 6d | 65 20 63 6f 6e 73 74 61 |pile-tim|e consta|
|00005840| 6e 74 73 0d 55 53 45 5f | 4d 53 42 20 61 6e 64 20 |nts.USE_|MSB and |
|00005850| 50 52 4f 5f 38 42 49 54 | 53 20 62 79 20 72 75 6e |PRO_8BIT|S by run|
|00005860| 74 69 6d 65 20 66 6c 61 | 67 73 20 70 61 73 73 65 |time fla|gs passe|
|00005870| 64 20 61 73 20 61 72 67 | 75 6d 65 6e 74 73 2e 20 |d as arg|uments. |
|00005880| a5 41 64 64 65 64 20 57 | 61 69 74 46 6f 72 4e 65 |.Added W|aitForNe|
|00005890| 78 74 42 6c 61 6e 6b 69 | 6e 67 28 29 0d 62 61 73 |xtBlanki|ng().bas|
|000058a0| 65 64 20 6f 6e 20 63 6f | 64 65 20 66 72 6f 6d 20 |ed on co|de from |
|000058b0| 56 69 64 65 6f 54 46 42 | 2e 63 2e 0d 0d 31 32 2f |VideoTFB|.c...12/|
|000058c0| 33 2f 39 32 20 64 67 70 | 20 49 6e 63 6f 72 70 6f |3/92 dgp| Incorpo|
|000058d0| 72 61 74 65 64 20 50 65 | 74 65 72 20 4c 65 6e 6e |rated Pe|ter Lenn|
|000058e0| 69 65 27 73 20 63 6f 72 | 72 65 63 74 69 6f 6e 73 |ie's cor|rections|
|000058f0| 20 61 6e 64 20 61 64 64 | 69 74 69 6f 6e 73 20 74 | and add|itions t|
|00005900| 6f 20 74 68 65 20 63 6f | 6d 6d 65 6e 74 73 20 61 |o the co|mments a|
|00005910| 62 6f 76 65 2e 0d 0d 31 | 32 2f 38 2f 39 32 20 64 |bove...1|2/8/92 d|
|00005920| 67 70 20 41 64 64 65 64 | 20 6d 69 73 73 69 6e 67 |gp Added| missing|
|00005930| 20 22 63 61 73 65 22 20 | 74 6f 20 73 77 69 74 63 | "case" |to switc|
|00005940| 68 20 69 6e 20 57 61 69 | 74 46 6f 72 4e 65 78 74 |h in Wai|tForNext|
|00005950| 42 6c 61 6e 6b 69 6e 67 | 2e 0d 0d 31 32 2f 31 33 |Blanking|...12/13|
|00005960| 2f 39 32 20 64 67 70 20 | 43 68 61 6e 67 65 64 20 |/92 dgp |Changed |
|00005970| 65 72 72 6f 6e 65 6f 75 | 73 20 22 26 64 22 20 74 |erroneou|s "&d" t|
|00005980| 6f 20 22 25 64 22 20 69 | 6e 20 61 20 70 72 69 6e |o "%d" i|n a prin|
|00005990| 74 66 2e 20 41 64 64 65 | 64 20 73 6f 6d 65 20 63 |tf. Adde|d some c|
|000059a0| 6f 6d 6d 65 6e 74 73 20 | 74 6f 0d 74 68 65 20 64 |omments |to.the d|
|000059b0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 61 62 6f |ocumenta|tion abo|
|000059c0| 76 65 2e 0d 09 09 09 0d | 31 32 2f 31 35 2f 39 32 |ve......|12/15/92|
|000059d0| 20 64 67 70 20 4e 6f 77 | 20 67 65 74 20 6d 6f 64 | dgp Now| get mod|
|000059e0| 65 20 66 72 6f 6d 20 64 | 65 76 69 63 65 20 72 65 |e from d|evice re|
|000059f0| 63 6f 72 64 20 61 6e 64 | 20 6c 65 61 76 65 20 69 |cord and| leave i|
|00005a00| 74 20 69 6e 20 73 74 61 | 6e 64 61 72 64 20 66 6f |t in sta|ndard fo|
|00005a10| 72 6d 2c 20 0d 69 2e 65 | 2e 20 77 69 74 68 20 74 |rm, .i.e|. with t|
|00005a20| 68 65 20 30 78 38 30 20 | 62 69 74 20 73 65 74 2c |he 0x80 |bit set,|
|00005a30| 20 61 6e 64 20 6f 6e 6c | 79 20 73 74 72 69 70 20 | and onl|y strip |
|00005a40| 6f 66 66 20 74 68 61 74 | 20 62 69 74 20 77 68 65 |off that| bit whe|
|00005a50| 6e 20 61 63 74 75 61 6c | 6c 79 20 6e 65 63 65 73 |n actual|ly neces|
|00005a60| 73 61 72 79 2c 0d 65 2e | 67 2e 20 69 6e 20 4c 6f |sary,.e.|g. in Lo|
|00005a70| 61 64 43 6c 75 74 4d 61 | 63 49 49 63 69 2e 20 0d |adClutMa|cIIci. .|
|00005a80| 0d 31 32 2f 33 30 2f 39 | 32 20 64 67 70 20 4d 61 |.12/30/9|2 dgp Ma|
|00005a90| 6b 65 20 73 75 72 65 20 | 72 6f 75 74 69 6e 65 73 |ke sure |routines|
|00005aa0| 20 72 65 74 75 72 6e 20 | 7a 65 72 6f 20 77 68 65 | return |zero whe|
|00005ab0| 6e 20 74 68 65 72 65 27 | 73 20 6e 6f 20 65 72 72 |n there'|s no err|
|00005ac0| 6f 72 2e 0d 0d 32 2f 31 | 35 2f 39 33 09 64 67 70 |or...2/1|5/93.dgp|
|00005ad0| 20 52 65 77 72 6f 74 65 | 20 6e 6f 6e 77 6f 72 6b | Rewrote| nonwork|
|00005ae0| 69 6e 67 20 4c 6f 61 64 | 43 6c 75 74 54 6f 62 79 |ing Load|ClutToby|
|00005af0| 20 69 6e 20 43 2c 20 61 | 6e 64 20 6d 61 64 65 20 | in C, a|nd made |
|00005b00| 69 74 20 77 6f 72 6b 2e | 20 52 65 77 72 6f 74 65 |it work.| Rewrote|
|00005b10| 0d 6e 6f 6e 77 6f 72 6b | 69 6e 67 20 4c 6f 61 64 |.nonwork|ing Load|
|00005b20| 43 6c 75 74 78 38 32 34 | 20 69 6e 20 43 2c 20 61 |Clutx824| in C, a|
|00005b30| 6e 64 20 6d 61 64 65 20 | 69 74 20 77 6f 72 6b 2e |nd made |it work.|
|00005b40| 20 46 69 78 65 64 20 73 | 69 78 74 65 65 6e 42 69 | Fixed s|ixteenBi|
|00005b50| 74 4d 6f 64 65 20 69 6e | 0d 4c 6f 61 64 43 6c 75 |tMode in|.LoadClu|
|00005b60| 74 51 75 61 64 72 61 2e | 20 55 73 65 20 6e 65 77 |tQuadra.| Use new|
|00005b70| 20 53 77 61 70 50 72 69 | 6f 72 69 74 79 20 69 6e | SwapPri|ority in|
|00005b80| 73 74 65 61 64 20 6f 66 | 20 47 65 74 2f 53 65 74 |stead of| Get/Set|
|00005b90| 50 72 69 6f 72 69 74 79 | 2e 0d 0d 32 2f 32 30 2f |Priority|...2/20/|
|00005ba0| 39 33 09 64 67 70 09 54 | 72 61 6e 73 6c 61 74 65 |93.dgp.T|ranslate|
|00005bb0| 64 20 4c 6f 61 64 43 6c | 75 74 47 43 78 38 32 34 |d LoadCl|utGCx824|
|00005bc0| 20 74 6f 20 43 2e 20 28 | 49 74 20 77 61 73 20 69 | to C. (|It was i|
|00005bd0| 67 6e 6f 72 69 6e 67 20 | 74 68 65 20 73 74 61 72 |gnoring |the star|
|00005be0| 74 20 76 61 6c 75 65 2e | 29 0d 0d 33 2f 34 2f 39 |t value.|)..3/4/9|
|00005bf0| 33 09 64 67 70 09 41 64 | 64 65 64 20 6d 61 63 49 |3.dgp.Ad|ded macI|
|00005c00| 49 73 69 20 74 6f 20 6c | 69 73 74 20 6f 66 20 73 |Isi to l|ist of s|
|00005c10| 75 70 70 6f 72 74 65 64 | 20 63 61 72 64 73 2c 20 |upported| cards, |
|00005c20| 73 69 6e 63 65 20 69 74 | 20 75 73 65 73 20 74 68 |since it| uses th|
|00005c30| 65 20 73 61 6d 65 0d 64 | 72 69 76 65 72 20 61 73 |e same.d|river as|
|00005c40| 20 74 68 65 20 4d 61 63 | 20 49 49 63 69 2e 20 43 | the Mac| IIci. C|
|00005c50| 68 61 6e 67 65 64 20 64 | 65 66 69 6e 69 74 69 6f |hanged d|efinitio|
|00005c60| 6e 73 20 6f 66 20 73 74 | 72 69 6e 67 20 74 79 70 |ns of st|ring typ|
|00005c70| 65 73 20 73 6c 69 67 68 | 74 6c 79 20 74 6f 20 61 |es sligh|tly to a|
|00005c80| 6c 6c 6f 77 0d 63 6f 6d | 70 69 6c 61 74 69 6f 6e |llow.com|pilation|
|00005c90| 20 6f 66 20 74 68 69 73 | 20 66 69 6c 65 20 61 73 | of this| file as|
|00005ca0| 20 61 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 | a code |resource|
|00005cb0| 2e 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 61 |. Howeve|r, the a|
|00005cc0| 73 73 65 6d 62 6c 79 20 | 63 6f 64 65 0d 75 73 65 |ssembly |code.use|
|00005cd0| 73 20 6d 6f 72 65 20 72 | 65 67 69 73 74 65 72 73 |s more r|egisters|
|00005ce0| 20 74 68 61 6e 20 61 72 | 65 20 61 76 61 69 6c 61 | than ar|e availa|
|00005cf0| 62 6c 65 20 74 6f 20 61 | 20 63 6f 64 65 20 72 65 |ble to a| code re|
|00005d00| 73 6f 75 72 63 65 2e 0d | 0d 34 2f 31 33 2f 39 33 |source..|.4/13/93|
|00005d10| 09 64 67 70 09 52 65 6d | 6f 76 65 64 20 36 38 30 |.dgp.Rem|oved 680|
|00005d20| 32 30 20 72 65 71 75 69 | 72 65 6d 65 6e 74 20 62 |20 requi|rement b|
|00005d30| 79 20 74 72 61 6e 73 6c | 61 74 69 6e 67 20 61 6e |y transl|ating an|
|00005d40| 20 69 6e 64 65 78 65 64 | 20 61 64 64 20 69 6e 20 | indexed| add in |
|00005d50| 4c 6f 61 64 4d 61 63 49 | 49 63 69 20 74 6f 0d 43 |LoadMacI|Ici to.C|
|00005d60| 2e 0d 0d 34 2f 31 37 2f | 39 33 20 64 67 70 20 41 |...4/17/|93 dgp A|
|00005d70| 64 64 65 64 20 73 75 70 | 70 6f 72 74 20 69 6e 20 |dded sup|port in |
|00005d80| 47 65 74 43 61 72 64 42 | 61 73 65 20 66 6f 72 20 |GetCardB|ase for |
|00005d90| 6f 6c 64 20 4d 61 63 20 | 49 49 20 63 6f 6d 70 75 |old Mac |II compu|
|00005da0| 74 65 72 73 20 77 68 6f | 73 65 20 52 4f 4d 27 73 |ters who|se ROM's|
|00005db0| 20 6f 6e 6c 79 20 0d 73 | 75 70 70 6f 72 74 20 32 | only .s|upport 2|
|00005dc0| 34 2d 62 69 74 20 4e 75 | 42 75 73 20 61 64 64 72 |4-bit Nu|Bus addr|
|00005dd0| 65 73 73 69 6e 67 2e 20 | 0d 0d 35 2f 31 38 2f 39 |essing. |..5/18/9|
|00005de0| 33 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |3 SetEnt|riesQuic|
|00005df0| 6b 6c 79 20 6e 6f 77 20 | 72 65 73 70 65 63 74 73 |kly now |respects|
|00005e00| 20 74 68 65 20 73 65 74 | 74 69 6e 67 20 6f 66 20 | the set|ting of |
|00005e10| 74 68 65 20 64 65 76 69 | 63 65 27 73 20 67 72 61 |the devi|ce's gra|
|00005e20| 79 2f 63 6f 6c 6f 72 20 | 6d 6f 64 65 2c 20 0d 61 |y/color |mode, .a|
|00005e30| 6e 64 20 6d 61 70 73 20 | 74 6f 20 67 72 61 79 20 |nd maps |to gray |
|00005e40| 69 66 20 69 6e 20 74 68 | 65 20 64 65 76 69 63 65 |if in th|e device|
|00005e50| 20 69 73 20 69 6e 20 67 | 72 61 79 20 6d 6f 64 65 | is in g|ray mode|
|00005e60| 20 61 6e 64 20 70 69 78 | 65 6c 53 69 7a 65 3c 3d | and pix|elSize<=|
|00005e70| 38 2e 20 43 68 61 6e 67 | 65 64 20 70 72 6f 74 6f |8. Chang|ed proto|
|00005e80| 74 79 70 65 0d 6f 66 20 | 6d 61 63 6c 74 73 65 74 |type.of |macltset|
|00005e90| 20 74 6f 20 73 70 65 63 | 69 66 79 20 74 68 65 20 | to spec|ify the |
|00005ea0| 72 65 64 2c 20 67 72 65 | 65 6e 2c 20 61 6e 64 20 |red, gre|en, and |
|00005eb0| 62 6c 75 65 20 61 72 72 | 61 79 73 20 61 73 20 22 |blue arr|ays as "|
|00005ec0| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 22 20 |unsigned| short" |
|00005ed0| 69 6e 73 74 65 61 64 20 | 6f 66 20 0d 22 73 68 6f |instead |of ."sho|
|00005ee0| 72 74 22 2e 0d 0d 37 2f | 37 2f 39 33 09 64 67 70 |rt"...7/|7/93.dgp|
|00005ef0| 09 44 69 73 61 62 6c 65 | 64 20 73 6f 6d 65 20 67 |.Disable|d some g|
|00005f00| 6c 6f 62 61 6c 20 6f 70 | 74 69 6d 69 7a 61 74 69 |lobal op|timizati|
|00005f10| 6f 6e 73 20 62 65 63 61 | 75 73 65 20 54 48 49 4e |ons beca|use THIN|
|00005f20| 4b 20 43 20 36 20 77 69 | 6c 6c 0d 63 72 61 73 68 |K C 6 wi|ll.crash|
|00005f30| 20 77 68 69 6c 65 20 63 | 6f 6d 70 69 6c 69 6e 67 | while c|ompiling|
|00005f40| 20 69 66 20 74 68 65 20 | 52 61 64 69 75 73 20 50 | if the |Radius P|
|00005f50| 6f 77 65 72 56 69 65 77 | 20 69 73 20 70 72 65 73 |owerView| is pres|
|00005f60| 65 6e 74 3a 20 22 21 67 | 6f 70 74 5f 69 6e 64 75 |ent: "!g|opt_indu|
|00005f70| 63 74 69 6f 6e 2c 21 67 | 6f 70 74 5f 6c 6f 6f 70 |ction,!g|opt_loop|
|00005f80| 22 2e 0d 0d 37 2f 39 2f | 39 33 09 64 67 70 20 63 |"...7/9/|93.dgp c|
|00005f90| 68 65 63 6b 20 66 6f 72 | 20 33 32 2d 62 69 74 20 |heck for| 32-bit |
|00005fa0| 61 64 64 72 65 73 73 69 | 6e 67 20 63 61 70 61 62 |addressi|ng capab|
|00005fb0| 69 6c 69 74 79 2e 0d 0d | 36 2f 31 34 2f 39 34 09 |ility...|6/14/94.|
|00005fc0| 64 67 70 09 63 61 6e 33 | 32 20 69 73 20 6e 6f 77 |dgp.can3|2 is now|
|00005fd0| 20 63 6f 6d 70 75 74 65 | 64 20 62 79 20 63 61 6c | compute|d by cal|
|00005fe0| 6c 69 6e 67 20 54 72 61 | 70 41 76 61 69 6c 61 62 |ling Tra|pAvailab|
|00005ff0| 6c 65 28 5f 53 77 61 70 | 4d 4d 55 4d 6f 64 65 29 |le(_Swap|MMUMode)|
|00006000| 2c 20 77 68 69 63 68 20 | 0d 72 65 74 75 72 6e 73 |, which |.returns|
|00006010| 20 63 6f 72 72 65 63 74 | 20 61 6e 73 77 65 72 20 | correct| answer |
|00006020| 65 76 65 6e 20 6f 6e 20 | 4d 61 63 73 20 77 69 74 |even on |Macs wit|
|00006030| 68 20 64 69 72 74 79 20 | 52 4f 4d 73 2e 0d 0d 36 |h dirty |ROMs...6|
|00006040| 2f 31 34 2f 39 34 09 64 | 67 70 09 41 64 64 65 64 |/14/94.d|gp.Added|
|00006050| 20 63 61 6c 6c 20 74 6f | 20 53 77 61 70 4d 4d 55 | call to| SwapMMU|
|00006060| 4d 6f 64 65 20 69 6e 20 | 4c 6f 61 64 43 6c 75 74 |Mode in |LoadClut|
|00006070| 54 6f 62 79 2c 20 62 65 | 63 61 75 73 65 20 69 74 |Toby, be|cause it|
|00006080| 20 73 65 65 6d 65 64 20 | 6f 64 64 20 6e 6f 74 20 | seemed |odd not |
|00006090| 74 6f 2e 0d 4c 6f 61 64 | 43 6c 75 74 4d 61 63 49 |to..Load|ClutMacI|
|000060a0| 49 63 69 20 73 74 69 6c | 6c 20 64 6f 65 73 6e 27 |Ici stil|l doesn'|
|000060b0| 74 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 76 |t, becau|se the v|
|000060c0| 69 64 65 6f 20 62 75 66 | 66 65 72 20 69 73 20 69 |ideo buf|fer is i|
|000060d0| 6e 20 6d 65 6d 6f 72 79 | 2e 0d 0d 36 2f 33 30 2f |n memory|...6/30/|
|000060e0| 39 34 20 64 67 70 20 55 | 70 64 61 74 65 64 20 74 |94 dgp U|pdated t|
|000060f0| 68 65 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |he docum|entation|
|00006100| 2e 0d 0d 37 2f 32 37 2f | 39 34 20 64 67 70 20 4d |...7/27/|94 dgp M|
|00006110| 6f 76 65 64 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |oved the| list of|
|00006120| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 64 65 76 69 | compati|ble devi|
|00006130| 63 65 73 20 66 72 6f 6d | 20 74 68 65 20 22 56 69 |ces from| the "Vi|
|00006140| 64 65 6f 20 73 79 6e 63 | 68 22 20 64 6f 63 75 6d |deo sync|h" docum|
|00006150| 65 6e 74 0d 74 6f 20 68 | 65 72 65 2c 20 61 74 20 |ent.to h|ere, at |
|00006160| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 66 |the top |of the f|
|00006170| 69 6c 65 2e 0d 0d 37 2f | 32 39 2f 39 34 20 64 67 |ile...7/|29/94 dg|
|00006180| 70 20 4d 61 64 65 20 75 | 73 65 20 6f 66 20 74 68 |p Made u|se of th|
|00006190| 65 20 61 73 6d 20 64 69 | 72 65 63 74 69 76 65 20 |e asm di|rective |
|000061a0| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 6f 6e 20 54 |conditio|nal on T|
|000061b0| 48 49 4e 4b 5f 43 2c 20 | 66 6f 72 20 63 6f 6d 70 |HINK_C, |for comp|
|000061c0| 61 74 69 62 69 6c 69 74 | 79 0d 77 69 74 68 20 6f |atibilit|y.with o|
|000061d0| 74 68 65 72 20 63 6f 6d | 70 69 6c 65 72 73 2e 20 |ther com|pilers. |
|000061e0| 43 68 61 6e 67 65 64 20 | 4c 6f 61 64 43 6c 75 74 |Changed |LoadClut|
|000061f0| 78 38 32 34 47 43 28 29 | 20 74 6f 20 75 73 65 20 |x824GC()| to use |
|00006200| 69 74 73 20 43 20 69 6e | 73 74 65 61 64 20 6f 66 |its C in|stead of|
|00006210| 20 69 74 73 20 61 73 6d | 20 63 6f 64 65 2e 20 0d | its asm| code. .|
|00006220| 48 6f 77 65 76 65 72 2c | 20 49 20 64 6f 6e 27 74 |However,| I don't|
|00006230| 20 6b 6e 6f 77 20 69 66 | 20 74 68 65 20 43 20 63 | know if| the C c|
|00006240| 6f 64 65 20 68 61 73 20 | 62 65 65 6e 20 74 65 73 |ode has |been tes|
|00006250| 74 65 64 2e 20 47 65 74 | 43 61 72 64 54 79 70 65 |ted. Get|CardType|
|00006260| 28 29 20 72 65 74 75 72 | 6e 73 20 6e 6f 6e 7a 65 |() retur|ns nonze|
|00006270| 72 6f 0d 6f 6e 6c 79 20 | 69 66 20 74 68 65 20 63 |ro.only |if the c|
|00006280| 61 72 64 20 69 73 20 73 | 75 70 70 6f 72 74 65 64 |ard is s|upported|
|00006290| 20 62 79 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 64 | by the |compiled|
|000062a0| 20 63 6f 64 65 20 28 69 | 2e 65 2e 20 50 72 6f 43 | code (i|.e. ProC|
|000062b0| 6f 6c 6f 72 2c 20 51 75 | 61 64 72 61 2c 20 61 6e |olor, Qu|adra, an|
|000062c0| 64 20 4d 61 63 0d 49 49 | 63 69 20 61 6e 64 20 49 |d Mac.II|ci and I|
|000062d0| 49 73 69 20 61 72 65 20 | 72 65 63 6f 67 6e 69 7a |Isi are |recogniz|
|000062e0| 65 64 20 6f 6e 6c 79 20 | 69 66 20 74 68 69 73 20 |ed only |if this |
|000062f0| 66 69 6c 65 20 69 73 20 | 63 6f 6d 70 69 6c 65 64 |file is |compiled|
|00006300| 20 62 79 20 54 48 49 4e | 4b 20 43 2e 29 0d 0d 31 | by THIN|K C.)..1|
|00006310| 2f 31 33 2f 39 35 20 64 | 67 70 20 41 64 64 65 64 |/13/95 d|gp Added|
|00006320| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2c 20 61 62 | informa|tion, ab|
|00006330| 6f 76 65 2c 20 66 72 6f | 6d 20 52 68 65 61 20 45 |ove, fro|m Rhea E|
|00006340| 73 6b 65 77 20 61 62 6f | 75 74 20 74 68 65 20 52 |skew abo|ut the R|
|00006350| 61 73 74 65 72 4f 70 73 | 20 38 4c 2e 0d 0d 31 2f |asterOps| 8L...1/|
|00006360| 31 36 2f 39 35 20 64 67 | 70 20 41 64 64 65 64 20 |16/95 dg|p Added |
|00006370| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2c 20 61 62 6f |informat|ion, abo|
|00006380| 76 65 2c 20 66 72 6f 6d | 20 42 65 6e 20 53 69 6e |ve, from| Ben Sin|
|00006390| 67 65 72 20 61 62 6f 75 | 74 20 74 68 65 20 51 75 |ger abou|t the Qu|
|000063a0| 61 64 72 61 20 38 34 30 | 41 56 20 26 20 36 36 30 |adra 840|AV & 660|
|000063b0| 41 56 2e 0d 41 64 64 65 | 64 20 4c 6f 61 64 43 6c |AV..Adde|d LoadCl|
|000063c0| 75 74 51 75 61 64 72 61 | 41 56 28 29 20 62 61 73 |utQuadra|AV() bas|
|000063d0| 65 64 20 6f 6e 20 42 65 | 6e 27 73 20 63 6f 64 65 |ed on Be|n's code|
|000063e0| 2e 0d 2a 2f 0d 23 69 6e | 63 6c 75 64 65 20 22 56 |..*/.#in|clude "V|
|000063f0| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 2e 68 22 0d 23 |ideoTool|box.h".#|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.